Browse Source

qcacmn: Fix 11BE compilations when kernel doesn't support 11be

Along with 11BE feature macro, check for Kernel 11be macro to avoid
compilation issues when kernel doesn't support 11be.

Change-Id: I11c8287725a25b6b4e3234a38ae61d50f293cc96
CRs-Fixed: 3066178
Bapiraju Alla 3 năm trước cách đây
mục cha
commit
430a5f423e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      os_if/linux/spectral/src/wlan_cfg80211_spectral.c

+ 1 - 1
os_if/linux/spectral/src/wlan_cfg80211_spectral.c

@@ -201,7 +201,7 @@ convert_spectral_err_code_internal_to_nl
 	return QDF_STATUS_SUCCESS;
 }
 
-#ifdef WLAN_FEATURE_11BE
+#if defined(WLAN_FEATURE_11BE) && defined(CFG80211_11BE_BASIC)
 int
 wlan_spectral_get_nl80211_chwidth(uint8_t phy_chwidth)
 {