瀏覽代碼

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 <[email protected]>
Felix Fietkau 2 年之前
父節點
當前提交
2b4941a6f1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package/network/config/wifi-scripts/files/usr/share/hostap/common.uc

+ 1 - 1
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)