mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-20 09:26:28 +00:00
wifi-scripts: create the wlan object in board_data if not present
Fixes an error in wifi detection Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
95cd3c7005
commit
2a2abed0be
@ -39,8 +39,9 @@ function cleanup() {
|
||||
}
|
||||
|
||||
function wiphy_get_entry(phy, path) {
|
||||
let wlan = board_data.wlan;
|
||||
board_data.wlan ??= {};
|
||||
|
||||
let wlan = board_data.wlan;
|
||||
for (let name in wlan)
|
||||
if (wlan[name].path == path)
|
||||
return wlan[name];
|
||||
|
Loading…
x
Reference in New Issue
Block a user