summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2024-02-09 11:18:57 +0000
committerFelix Fietkau2024-02-09 11:20:48 +0000
commitb79583c97513bebcea1e4a47792b0cf112dcbd68 (patch)
tree9a3624e15549346b6f73c0308eea37897b36f69e
parent9e41117953e31ffe355416e962ecf0e000dc594d (diff)
downloadopenwrt-b79583c97513bebcea1e4a47792b0cf112dcbd68.tar.gz
wifi-scripts: fix fullmac phy detection
Checking for AP_VLAN misdetects ath10k-ath12k as fullmac, because of software crypto limitations. Check for monitor mode support instead, which is more reliable. Fixes: https://github.com/openwrt/openwrt/issues/14575 Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 2b4941a6f16fa1c045cb2f4a8fc09adc64fecd63)
-rw-r--r--package/network/services/hostapd/files/common.uc2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/common.uc b/package/network/services/hostapd/files/common.uc
index 4c33779af9..750e3ae71c 100644
--- a/package/network/services/hostapd/files/common.uc
+++ b/package/network/services/hostapd/files/common.uc
@@ -49,7 +49,7 @@ function __phy_is_fullmac(phyidx)
{
let data = nl80211.request(nl80211.const.NL80211_CMD_GET_WIPHY, 0, { wiphy: phyidx });
- return !data.software_iftypes.ap_vlan;
+ return !data.software_iftypes.monitor;
}
function phy_is_fullmac(phy)