]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: iwinfo: guard assoclist against unknown device
authorJohn Crispin <john@phrozen.org>
Fri, 13 Feb 2026 10:32:04 +0000 (11:32 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 22 May 2026 12:54:34 +0000 (14:54 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/iwinfo.uc

index 7fa5291de19c5d26ecf8612d59e2d6e7ad090131..3dfad25523bb04e1d89aa70c2f1ded9a0a53969a 100644 (file)
@@ -344,6 +344,9 @@ function hwmodelist(name) {
 }
 
 export function assoclist(dev) {
+       if (!ifaces[dev])
+               return {};
+
        let stations = ifaces[dev].assoclist;
        let ret = {};