Explorar el Código

qcacmn: Add wmi interface to send CSA status indication

This change is to add wmi interface for sending channel
switch Announcement event status indication from host driver.

Change-Id: I4b22280e4e4c85ebf54394c80d4fefa62eef4b2d
CRs-Fixed: 3616927
Aasir Rasheed hace 1 año
padre
commit
7b3fb7fb8b
Se han modificado 2 ficheros con 19 adiciones y 0 borrados
  1. 18 0
      wmi/inc/wmi_unified_priv.h
  2. 1 0
      wmi/src/wmi_unified_tlv.c

+ 18 - 0
wmi/inc/wmi_unified_priv.h

@@ -113,6 +113,10 @@
 #include "wlan_coap_public_structs.h"
 #endif
 
+#ifdef QCA_TARGET_IF_MLME
+#include "wmi_unified_mlme_api.h"
+#endif
+
 #define WMI_UNIFIED_MAX_EVENT 0x100
 
 #ifdef WMI_EXT_DBG
@@ -3428,6 +3432,12 @@ QDF_STATUS (*extract_aoa_caps_service_ready_ext2)
 		(struct wmi_unified *wmi_handle, uint8_t *buf,
 		 struct wlan_psoc_host_rcc_enh_aoa_caps_ext2 *aoa_cap);
 #endif /* WLAN_RCC_ENHANCED_AOA_SUPPORT */
+
+#ifdef QCA_TARGET_IF_MLME
+QDF_STATUS (*send_csa_event_status_ind)(
+		wmi_unified_t wmi_handle,
+		struct csa_event_status_ind params);
+#endif /* QCA_TARGET_IF_MLME */
 };
 
 /* Forward declaration for psoc*/
@@ -4010,6 +4020,14 @@ static inline void wmi_cp_stats_attach_tlv(struct wmi_unified *wmi_handle)
 }
 #endif /* QCA_SUPPORT_CP_STATS */
 
+#ifdef QCA_TARGET_IF_MLME
+void wmi_mlme_attach_tlv(wmi_unified_t wmi_handle);
+#else
+static inline void wmi_mlme_attach_tlv(wmi_unified_t wmi_handle)
+{
+}
+#endif /* QCA_TARGET_IF_MLME */
+
 #ifdef QCA_SUPPORT_MC_CP_STATS
 void wmi_mc_cp_stats_attach_tlv(struct wmi_unified *wmi_handle);
 #else

+ 1 - 0
wmi/src/wmi_unified_tlv.c

@@ -22900,6 +22900,7 @@ void wmi_tlv_attach(wmi_unified_t wmi_handle)
 	wmi_gpio_attach_tlv(wmi_handle);
 	wmi_11be_attach_tlv(wmi_handle);
 	wmi_coap_attach_tlv(wmi_handle);
+	wmi_mlme_attach_tlv(wmi_handle);
 }
 qdf_export_symbol(wmi_tlv_attach);