mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
rrmd: phy: Use wiphy_name if exists
When wiphy_name is defined should be used instead of creating name using wiphy index. Signed-off-by: Marek Kwaczynski <marek@shasta.cloud>
This commit is contained in:
committed by
John Crispin
parent
4d55d427d7
commit
a9e0e16a80
@@ -73,7 +73,14 @@ function lookup_phys() {
|
||||
let phys = phy_get();
|
||||
let ret = {};
|
||||
for (let phy in phys) {
|
||||
let phyname = 'phy' + phy.wiphy;
|
||||
let phyname;
|
||||
if (phy?.wiphy_name)
|
||||
phyname = phy.wiphy_name;
|
||||
else if (phy?.wiphy != null)
|
||||
phyname = 'phy' + phy.wiphy;
|
||||
else
|
||||
continue;
|
||||
|
||||
let path = paths[phyname];
|
||||
if (!path)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user