Преглед изворни кода

qcacmn: Add extract API for dcs interference event

Add TLV APIs to extract DCS intereference event. Add pdev id in
extract API used to derive pdev object.

Change-Id: Ie42ec1e3aec899ddc5b6b13d37dfd468ee29df7c
CRs-Fixed: 1115213
Kiran Venkatappa пре 8 година
родитељ
комит
9b7a959914
3 измењених фајлова са 12 додато и 2 уклоњено
  1. 1 1
      wmi_unified_api.h
  2. 10 0
      wmi_unified_param.h
  3. 1 1
      wmi_unified_priv.h

+ 1 - 1
wmi_unified_api.h

@@ -1162,7 +1162,7 @@ QDF_STATUS wmi_extract_wds_addr_event(void *wmi_hdl,
 		void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
 
 QDF_STATUS wmi_extract_dcs_interference_type(void *wmi_hdl,
-		void *evt_buf, uint32_t *interference_type);
+		void *evt_buf, struct wmi_host_dcs_interference_param *param);
 
 QDF_STATUS wmi_extract_dcs_cw_int(void *wmi_hdl, void *evt_buf,
 		wmi_host_ath_dcs_cw_int *cw_int);

+ 10 - 0
wmi_unified_param.h

@@ -7225,4 +7225,14 @@ struct wmi_host_pdev_utf_event {
 	uint16_t datalen;
 };
 
+/**
+ * @struct wmi_host_dcs_interference_param
+ * @interference_type: Type of DCS Interference
+ * @uint32_t pdev_id: pdev id
+ */
+struct wmi_host_dcs_interference_param {
+	uint32_t interference_type;
+	uint32_t pdev_id;
+};
+
 #endif /* _WMI_UNIFIED_PARAM_H_ */

+ 1 - 1
wmi_unified_priv.h

@@ -1000,7 +1000,7 @@ QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle,
 	void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
 
 QDF_STATUS (*extract_dcs_interference_type)(wmi_unified_t wmi_handle,
-	void *evt_buf, uint32_t *interference_type);
+	void *evt_buf, struct wmi_host_dcs_interference_param *param);
 
 QDF_STATUS (*extract_dcs_cw_int)(wmi_unified_t wmi_handle, void *evt_buf,
 	wmi_host_ath_dcs_cw_int *cw_int);