From 474c37b4c63eac0563e8d2ae527df71c52c257e8 Mon Sep 17 00:00:00 2001 From: Srinivas Dasari Date: Fri, 27 Nov 2020 00:23:09 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_cfg80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 8edf5c73ef7d..3f4d82a5793f 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -23731,7 +23731,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