mirror of
https://github.com/openwrt/openwrt.git
synced 2026-04-19 22:59:02 +04: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>
This commit is contained in:
@@ -455,7 +455,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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user