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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue