wifi-scripts: iwinfo.uc: fix null reference in info()
authorFelix Fietkau <nbd@nbd.name>
Wed, 28 Jan 2026 17:56:30 +0000 (17:56 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 28 Jan 2026 23:45:54 +0000 (00:45 +0100)
Fixes: https://github.com/openwrt/openwrt/issues/21651
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 434e1461b293e4c014391dd19d3977b193a2166f)

package/network/config/wifi-scripts/files-ucode/usr/share/ucode/iwinfo.uc

index 554ed71d3b4d39c2cf537fc73ed4878b80465208..9926d420e7b46d4f7637d7350ffe63554207107e 100644 (file)
@@ -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';