Browse Source

qcacld-3.0: Fix compilation failure

Fix compilation failure in hdd_update_wiphy_he_cap

Change-Id: I79820ab13af58c4bf0a5fa176accfa2cbdb28180
CRs-Fixed: 2647725
gaurank kathpalia 5 years ago
parent
commit
bcc6349b04
1 changed files with 3 additions and 3 deletions
  1. 3 3
      core/hdd/src/wlan_hdd_main.c

+ 3 - 3
core/hdd/src/wlan_hdd_main.c

@@ -2072,10 +2072,10 @@ static void hdd_extract_fw_version_info(struct hdd_context *hdd_ctx)
 			HDD_FW_VER_REL_ID(hdd_ctx->target_fw_vers_ext);
 }
 
-#if (defined(CONFIG_BAND_6GHZ) && defined(CFG80211_6GHZ_BAND_SUPPORTED)) || \
-	   (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))
+#if (((defined(CONFIG_BAND_6GHZ) && defined(CFG80211_6GHZ_BAND_SUPPORTED)) || \
+      (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))) && defined(WLAN_FEATURE_11AX))
 #if defined(CONFIG_BAND_6GHZ) && (defined(CFG80211_6GHZ_BAND_SUPPORTED) || \
-		      (KERNEL_VERSION(5, 4, 0) <= LINUX_VERSION_CODE))
+      (KERNEL_VERSION(5, 4, 0) <= LINUX_VERSION_CODE))
 static void
 hdd_update_wiphy_he_caps_6ghz(struct hdd_context *hdd_ctx)
 {