diff --git a/package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc b/package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc index 109b6a33cf..6eb6b84c91 100644 --- a/package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc +++ b/package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc @@ -79,6 +79,9 @@ function wiphy_detect() { return; for (let phy in phys) { + if (!phy) + continue; + let name = phy.wiphy_name; let path = phy_path(name); let info = {