mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-29 15:44:04 +00:00
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:
parent
7e972fe242
commit
d3628ca209
@ -79,6 +79,9 @@ function wiphy_detect() {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for (let phy in phys) {
|
for (let phy in phys) {
|
||||||
|
if (!phy)
|
||||||
|
continue;
|
||||||
|
|
||||||
let name = phy.wiphy_name;
|
let name = phy.wiphy_name;
|
||||||
let path = phy_path(name);
|
let path = phy_path(name);
|
||||||
let info = {
|
let info = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user