diff options
| author | Felix Fietkau | 2024-10-01 12:44:31 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2024-10-01 12:45:58 +0000 |
| commit | d3628ca20928e3efde887254390335ba0f5d39e2 (patch) | |
| tree | c960222ebbc47e9373d7c693f8d440847d9cb6a1 | |
| parent | 7e972fe242240973536d3db55301f0c33ca2fa6b (diff) | |
| download | openwrt-d3628ca20928e3efde887254390335ba0f5d39e2.tar.gz | |
wifi-scripts: wifi-detect.uc: skip null entries on nl80211 phy dump
This can happen on incomplete device probe
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc | 3 |
1 files changed, 3 insertions, 0 deletions
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 = { |