Sfoglia il codice sorgente

qcacld-3.0: Add Kernel version check to enable AKM support

Add a kernel vesion check to enable the AKM suites support.

Change-Id: I3d4897b37023e357b7023e60c6777c9b836f5df0
CRs-Fixed: 3035884
Aditya Kodukula 3 anni fa
parent
commit
ecaf320fdc
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 4 2
      core/hdd/src/wlan_hdd_cfg80211.c

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

@@ -466,7 +466,8 @@ static void hdd_init_6ghz(struct hdd_context *hdd_ctx)
 }
 #endif
 
-#if defined(CFG80211_IFTYPE_AKM_SUITES_SUPPORT)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)) || \
+	defined(CFG80211_IFTYPE_AKM_SUITES_SUPPORT)
 /*akm suits supported by sta*/
 static const u32 hdd_sta_akm_suites[] = {
 	WLAN_AKM_SUITE_8021X,
@@ -17219,7 +17220,8 @@ static void wlan_hdd_set_nan_supported_bands(struct wiphy *wiphy)
  *
  * Return: void
  */
-#if defined(CFG80211_IFTYPE_AKM_SUITES_SUPPORT)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)) || \
+	defined(CFG80211_IFTYPE_AKM_SUITES_SUPPORT)
 static void
 wlan_hdd_update_akm_suit_info(struct wiphy *wiphy)
 {