diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 46ed09885082..a5d197cebd5b 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -193,7 +193,8 @@ static const int beacon_filter_table[] = { #endif #if defined(WLAN_FEATURE_SAE) && \ - defined(CFG80211_EXTERNAL_AUTH_SUPPORT) + (defined(CFG80211_EXTERNAL_AUTH_SUPPORT) || \ + LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)) /** * wlan_hdd_sae_callback() - Sends SAE info to supplicant * @adapter: pointer adapter context diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 50adf998738c..00d4eeecea20 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -14596,7 +14596,8 @@ static void wlan_hdd_cfg80211_set_wiphy_oce_scan_flags(struct wiphy *wiphy) #endif #if defined(WLAN_FEATURE_SAE) && \ - defined(CFG80211_EXTERNAL_AUTH_SUPPORT) + (defined(CFG80211_EXTERNAL_AUTH_SUPPORT) || \ + LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)) /** * wlan_hdd_cfg80211_set_wiphy_sae_feature() - Indicates support of SAE feature * @wiphy: Pointer to wiphy @@ -22277,7 +22278,8 @@ wlan_hdd_cfg80211_update_connect_params(struct wiphy *wiphy, #endif #if defined(WLAN_FEATURE_SAE) && \ - defined(CFG80211_EXTERNAL_AUTH_SUPPORT) + (defined(CFG80211_EXTERNAL_AUTH_SUPPORT) || \ + LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)) #if defined(CFG80211_EXTERNAL_AUTH_AP_SUPPORT) /** * wlan_hdd_extauth_cache_pmkid() - Extract and cache pmkid @@ -22884,7 +22886,8 @@ static struct cfg80211_ops wlan_hdd_cfg80211_ops = { .update_connect_params = wlan_hdd_cfg80211_update_connect_params, #endif #if defined(WLAN_FEATURE_SAE) && \ - defined(CFG80211_EXTERNAL_AUTH_SUPPORT) + (defined(CFG80211_EXTERNAL_AUTH_SUPPORT) || \ + LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)) .external_auth = wlan_hdd_cfg80211_external_auth, #endif #if defined(WLAN_FEATURE_NAN) && \