Browse Source

qcacld-3.0: Get max supported EHT bandwidth in SME

As part of 320MHz bandwidth support for 11BE, define an API
to get max supported EHT bandwidth in SME, which in turn gets
max BW from WMA layer.

Change-Id: Ifae397ec38cd89758215a9d09fe58a4d7afd22f4
CRs-Fixed: 2935861
Jia Ding 4 years ago
parent
commit
49d869da28
2 changed files with 21 additions and 0 deletions
  1. 14 0
      core/sme/inc/sme_api.h
  2. 7 0
      core/sme/src/common/sme_api.c

+ 14 - 0
core/sme/inc/sme_api.h

@@ -4451,4 +4451,18 @@ void sme_fill_auth_type(enum csr_akm_type *auth_type,
  */
 enum csr_cfgdot11mode sme_phy_mode_to_dot11mode(enum wlan_phymode phy_mode);
 
+#ifdef WLAN_FEATURE_11BE
+/**
+ * sme_get_eht_ch_width() - SME API to get max supported EHT chan width by FW
+ *
+ * Return: Max EHT channel width supported by FW (eg. 80, 160, 320)
+ */
+uint32_t sme_get_eht_ch_width(void);
+#else /* !WLAN_FEATURE_11BE */
+static inline uint32_t sme_get_eht_ch_width(void)
+{
+	return 0;
+}
+#endif /* WLAN_FEATURE_11BE */
+
 #endif /* #if !defined( __SME_API_H ) */

+ 7 - 0
core/sme/src/common/sme_api.c

@@ -3435,6 +3435,13 @@ uint32_t sme_get_vht_ch_width(void)
 	return wma_get_vht_ch_width();
 }
 
+#ifdef WLAN_FEATURE_11BE
+uint32_t sme_get_eht_ch_width(void)
+{
+	return wma_get_eht_ch_width();
+}
+#endif
+
 #ifndef FEATURE_CM_ENABLE
 /*
  * sme_get_modify_profile_fields() -