[openwrt/openwrt] wifi-scripts: fix fullmac phy detection

LEDE Commits lede-commits at lists.infradead.org
Fri Feb 9 03:20:10 PST 2024


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/2b4941a6f16fa1c045cb2f4a8fc09adc64fecd63

commit 2b4941a6f16fa1c045cb2f4a8fc09adc64fecd63
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Feb 9 12:18:57 2024 +0100

    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 at nbd.name>
---
 package/network/config/wifi-scripts/files/usr/share/hostap/common.uc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/config/wifi-scripts/files/usr/share/hostap/common.uc b/package/network/config/wifi-scripts/files/usr/share/hostap/common.uc
index 4c33779af9..750e3ae71c 100644
--- a/package/network/config/wifi-scripts/files/usr/share/hostap/common.uc
+++ b/package/network/config/wifi-scripts/files/usr/share/hostap/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)




More information about the lede-commits mailing list