diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/iwinfo.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/iwinfo.uc index a266092bea3..4ce45b21f1c 100644 --- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/iwinfo.uc +++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/iwinfo.uc @@ -16,7 +16,7 @@ let wireless_status = ubus.call('network.wireless', 'status'); function find_phy(wiphy) { for (let k, phy in phys) - if (phy.wiphy == wiphy) + if (phy && phy.wiphy == wiphy) return phy; return null; }