From: Felix Fietkau Date: Fri, 9 Feb 2024 11:18:57 +0000 (+0100) Subject: wifi-scripts: fix fullmac phy detection X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2b4941a6f16fa1c045cb2f4a8fc09adc64fecd63;p=openwrt%2Fstaging%2Frmilecki.git 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 --- 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 4c33779af93..750e3ae71c2 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)