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 2b4941a6f1)
This commit is contained in:
Felix Fietkau
2024-02-09 12:18:57 +01:00
parent 9e41117953
commit b79583c975

View File

@@ -49,7 +49,7 @@ function __phy_is_fullmac(phyidx)
{ {
let data = nl80211.request(nl80211.const.NL80211_CMD_GET_WIPHY, 0, { wiphy: 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) function phy_is_fullmac(phy)