projects
/
openwrt
/
staging
/
robimarko.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wifi-scripts: create the wlan object in board_data if not present
[openwrt/staging/robimarko.git]
/
package
/
network
/
config
/
wifi-scripts
/
files
/
usr
/
share
/
hostap
/
wifi-detect.uc
diff --git
a/package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc
b/package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc
index 86ec3431ea7d27a45f6a50cbae266bdf3f1e2023..5f375880d2ba20c4ac2b24a8458185f41d006636 100644
(file)
--- a/
package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc
+++ b/
package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc
@@
-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];