From: Felix Fietkau Date: Tue, 1 Oct 2024 12:44:31 +0000 (+0200) Subject: wifi-scripts: wifi-detect.uc: skip null entries on nl80211 phy dump X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d3628ca20928e3efde887254390335ba0f5d39e2;p=openwrt%2Fstaging%2Fansuel.git wifi-scripts: wifi-detect.uc: skip null entries on nl80211 phy dump This can happen on incomplete device probe Signed-off-by: Felix Fietkau --- 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 = {