瀏覽代碼

qcacmn: extract dfs events

Add support to extract dfs events.

Change-Id: I2889d419954dec8ed3714dd0fd7383f3a3586f6e
CRs-Fixed: 2017481
Arif Hussain 8 年之前
父節點
當前提交
e542fe1343
共有 2 個文件被更改,包括 17 次插入0 次删除
  1. 2 0
      wmi_unified_param.h
  2. 15 0
      wmi_unified_priv.h

+ 2 - 0
wmi_unified_param.h

@@ -4925,6 +4925,8 @@ typedef enum {
 	wmi_pdev_csa_switch_count_status_event_id,
 	wmi_reg_chan_list_cc_event_id,
 	wmi_offchan_data_tx_completion_event,
+	wmi_dfs_cac_complete_id,
+	wmi_dfs_radar_detection_event_id,
 
 	wmi_events_max,
 } wmi_conv_event_id;

+ 15 - 0
wmi_unified_priv.h

@@ -42,6 +42,10 @@
 #include <wlan_p2p_public_struct.h>
 #endif
 
+#ifdef DFS_COMPONENT_ENABLE
+#include <wlan_dfs_public_struct.h>
+#endif
+
 #define WMI_UNIFIED_MAX_EVENT 0x100
 #ifdef CONFIG_MCL
 #define WMI_MAX_CMDS  256
@@ -1295,6 +1299,17 @@ QDF_STATUS (*extract_reg_chan_list_update_event)(wmi_unified_t wmi_handle,
 QDF_STATUS (*extract_chainmask_tables)(wmi_unified_t wmi_handle,
 		uint8_t *evt_buf,
 		struct wlan_psoc_host_chainmask_table *chainmask_table);
+
+#ifdef DFS_COMPONENT_ENABLE
+QDF_STATUS (*extract_dfs_cac_complete_event)(wmi_unified_t wmi_handle,
+		uint8_t *evt_buf,
+		uint32_t *vdev_id,
+		uint32_t len);
+QDF_STATUS (*extract_dfs_radar_detection_event)(wmi_unified_t wmi_handle,
+		uint8_t *evt_buf,
+		struct radar_found_info *radar_found,
+		uint32_t len);
+#endif
 };
 
 struct target_abi_version {