mirror of
https://github.com/openwrt/openwrt.git
synced 2026-06-17 14:50:15 +04:00
wifi-scripts: iwinfo: guard assoclist against unknown device
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
committed by
Felix Fietkau
parent
920a382cb6
commit
cb7414055c
@@ -344,6 +344,9 @@ function hwmodelist(name) {
|
||||
}
|
||||
|
||||
export function assoclist(dev) {
|
||||
if (!ifaces[dev])
|
||||
return {};
|
||||
|
||||
let stations = ifaces[dev].assoclist;
|
||||
let ret = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user