Jelajahi Sumber

qcacmn: Fix build issue

Fix build issue when WLAN_FEATURE_11BE undefined.

Change-Id: Id94702aaa23480cb3793716a8c820a68c9c7cacb
CRs-Fixed: 3180403
aloksing 3 tahun lalu
induk
melakukan
4022e9c245
1 mengubah file dengan 9 tambahan dan 0 penghapusan
  1. 9 0
      hal/wifi3.0/be/hal_be_api_mon.h

+ 9 - 0
hal/wifi3.0/be/hal_be_api_mon.h

@@ -1453,6 +1453,7 @@ hal_rx_parse_cmn_usr_info(struct hal_soc *hal_soc, uint8_t *tlv,
 	return HAL_TLV_STATUS_PPDU_NOT_DONE;
 }
 
+#ifdef WLAN_FEATURE_11BE
 static inline void
 hal_rx_ul_ofdma_ru_size_to_width(uint32_t ru_size,
 				 uint32_t *ru_width)
@@ -1515,6 +1516,14 @@ hal_rx_ul_ofdma_ru_size_to_width(uint32_t ru_size,
 	}
 	*ru_width = width;
 }
+#else
+static inline void
+hal_rx_ul_ofdma_ru_size_to_width(uint32_t ru_size,
+				 uint32_t *ru_width)
+{
+	*ru_width = 0;
+}
+#endif
 
 static inline enum ieee80211_eht_ru_size
 hal_rx_mon_hal_ru_size_to_ieee80211_ru_size(struct hal_soc *hal_soc,