summaryrefslogtreecommitdiffstats
path: root/package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc')
-rw-r--r--package/network/config/wifi-scripts/files/usr/share/hostap/wifi-detect.uc3
1 files changed, 2 insertions, 1 deletions
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 86ec3431ea..5f375880d2 100644
--- 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];