From d3628ca20928e3efde887254390335ba0f5d39e2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 1 Oct 2024 14:44:31 +0200 Subject: [PATCH] wifi-scripts: wifi-detect.uc: skip null entries on nl80211 phy dump This can happen on incomplete device probe Signed-off-by: Felix Fietkau --- .../config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc | 3 +++ 1 file changed, 3 insertions(+) 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 = { -- 2.30.2