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>
This commit is contained in:
Felix Fietkau 2024-10-01 14:44:31 +02:00
parent 7e972fe242
commit d3628ca209

View File

@ -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 = {