Quellcode durchsuchen

wifi-scripts: wifi-detect.uc: skip null entries on nl80211 phy dump

This can happen on incomplete device probe

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau vor 1 Jahr
Ursprung
Commit
d3628ca209

+ 3 - 0
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 = {