wifi-scripts: fix fullmac phy detection
authorFelix Fietkau <nbd@nbd.name>
Fri, 9 Feb 2024 11:18:57 +0000 (12:18 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 9 Feb 2024 11:18:59 +0000 (12:18 +0100)
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>
package/network/config/wifi-scripts/files/usr/share/hostap/common.uc

index 4c33779af935e1051ad220310b2d4d5559aa1054..750e3ae71c27dac75dc3f921478e8ef4b69b6bb2 100644 (file)
@@ -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)