ソースを参照

qcacld-3.0: Don't check for EXT_AUTH_AP_SUPPORT flag on new kernels

Backport flag CFG80211_EXTERNAL_AUTH_AP_SUPPORT is used to support
external auth in AP mode with older kernels. As the changes are
present in latest kernels, there is no need of this backport flag.

SAE PMK caching doesn't work on new kernels(e.g.: kernel-5.4) as
this backport flag is missing in latest kernels. So, avoid
checking for the same on new kernels.

Change-Id: Idc8858e7cff383e47196e2c94c66db40b5b98a3d
CRs-Fixed: 2807664
Srinivas Dasari 4 年 前
コミット
ba89470ad9
1 ファイル変更2 行追加1 行削除
  1. 2 1
      core/hdd/src/wlan_hdd_cfg80211.c

+ 2 - 1
core/hdd/src/wlan_hdd_cfg80211.c

@@ -23657,7 +23657,8 @@ wlan_hdd_cfg80211_update_connect_params(struct wiphy *wiphy,
 #if defined(WLAN_FEATURE_SAE) && \
 		(defined(CFG80211_EXTERNAL_AUTH_SUPPORT) || \
 		LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0))
-#if defined(CFG80211_EXTERNAL_AUTH_AP_SUPPORT)
+#if (defined(CFG80211_EXTERNAL_AUTH_AP_SUPPORT) || \
+		LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))
 /**
  * wlan_hdd_extauth_cache_pmkid() - Extract and cache pmkid
  * @adapter: hdd vdev/net_device context