[openwrt/openwrt] wifi-scripts: wifi-detect.uc: skip null entries on nl80211 phy dump
LEDE Commits
lede-commits at lists.infradead.org
Tue Oct 1 05:46:13 PDT 2024
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/d3628ca20928e3efde887254390335ba0f5d39e2
commit d3628ca20928e3efde887254390335ba0f5d39e2
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Oct 1 14:44:31 2024 +0200
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 at nbd.name>
---
.../network/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 = {
More information about the lede-commits
mailing list