hostapd: fix undeclared variable in common.uc
authorFelix Fietkau <nbd@nbd.name>
Wed, 2 Aug 2023 11:18:03 +0000 (13:18 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 2 Aug 2023 11:30:26 +0000 (13:30 +0200)
Fixes: https://github.com/openwrt/openwrt/issues/13210
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/files/common.uc

index 2002572cf1a3df40468ab1ec6e94e8a6f0c58848..9ece3b1af2ea1b545a8cf07031770e96d75887be 100644 (file)
@@ -34,7 +34,7 @@ function find_reusable_wdev(phyidx)
        if (!__phy_is_fullmac(phyidx))
                return null;
 
-       data = nl80211.request(
+       let data = nl80211.request(
                nl80211.const.NL80211_CMD_GET_INTERFACE,
                nl80211.const.NLM_F_DUMP,
                { wiphy: phyidx });