mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-01 15:23:08 +01:00
wifi-scripts: iwinfo.uc: fix null reference in info()
Fixes: https://github.com/openwrt/openwrt/issues/21651
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 434e1461b2)
This commit is contained in:
parent
b0c75adcc5
commit
dece3bf36b
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ export function info(name) {
|
|||
};
|
||||
|
||||
let phy = find_phy(data.wiphy);
|
||||
for (let limit in phy.interface_combinations[0]?.limits)
|
||||
for (let limit in phy.interface_combinations?.[0]?.limits)
|
||||
if (limit.types?.ap && limit.max > 1)
|
||||
dev.vaps = 'yes';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue