Browse Source

qcacmn: Add support for 11d FW commands and events

Add support to send 11d scan start and stop commands to FW and
process the 11d new country update event from FW.

Change-Id: I5c1588cfb5af672cdb5738784de1bd0b83bdbe77
CRs-Fixed: 2048784
Kiran Kumar Lokere 8 years ago
parent
commit
a7e488bc65
2 changed files with 48 additions and 0 deletions
  1. 14 0
      wmi_unified_priv.h
  2. 34 0
      wmi_unified_reg_api.h

+ 14 - 0
wmi_unified_priv.h

@@ -1028,6 +1028,14 @@ QDF_STATUS
 (*send_btcoex_wlan_priority_cmd)(wmi_unified_t wmi_handle,
 			struct btcoex_cfg_params *param);
 
+QDF_STATUS
+(*send_start_11d_scan_cmd)(wmi_unified_t wmi_handle,
+			struct reg_start_11d_scan_req *param);
+
+QDF_STATUS
+(*send_stop_11d_scan_cmd)(wmi_unified_t wmi_handle,
+			struct reg_stop_11d_scan_req *param);
+
 QDF_STATUS
 (*send_btcoex_duty_cycle_cmd)(wmi_unified_t wmi_handle,
 			struct btcoex_cfg_params *param);
@@ -1313,6 +1321,12 @@ QDF_STATUS (*extract_reg_chan_list_update_event)(wmi_unified_t wmi_handle,
 						 struct cur_regulatory_info
 						 *reg_info,
 						 uint32_t len);
+
+QDF_STATUS (*extract_reg_11d_new_country_event)(wmi_unified_t wmi_handle,
+		uint8_t *evt_buf,
+		struct reg_11d_new_country *reg_11d_country,
+		uint32_t len);
+
 QDF_STATUS (*extract_chainmask_tables)(wmi_unified_t wmi_handle,
 		uint8_t *evt_buf,
 		struct wlan_psoc_host_chainmask_table *chainmask_table);

+ 34 - 0
wmi_unified_reg_api.h

@@ -37,4 +37,38 @@ QDF_STATUS wmi_extract_reg_chan_list_update_event(void *wmi_hdl,
 						  struct cur_regulatory_info
 						  *reg_info,
 						  uint32_t len);
+
+/*
+ * wmi_unified_send_stop_11d_scan_cmd() - stop 11d scan
+ * @wmi_handle: wmi handle
+ * @stop_11d_scan: pointer to 11d scan stop req.
+ *
+ * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
+ */
+QDF_STATUS wmi_unified_send_stop_11d_scan_cmd(wmi_unified_t wmi_handle,
+		struct reg_stop_11d_scan_req *stop_11d_scan);
+
+/*
+ * wmi_unified_send_start_11d_scan_cmd() - start 11d scan
+ * @wmi_handle: wmi handle
+ * @start_11d_scan: pointer to 11d scan start req.
+ *
+ * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
+ */
+QDF_STATUS wmi_unified_send_start_11d_scan_cmd(wmi_unified_t wmi_handle,
+		struct reg_start_11d_scan_req *start_11d_scan);
+
+/**
+ * wmi_extract_reg_11d_new_cc_event() - function to extract the 11d new country
+ * @wmi_hdl: wmi handle
+ * @evt_buf: event buffer
+ * @reg_11d_new_cc: pointer to new 11d country info
+ * @len: length of buffer
+ *
+ * Return: 0 for success or error code
+ */
+QDF_STATUS wmi_extract_reg_11d_new_cc_event(void *wmi_hdl,
+		uint8_t *evt_buf,
+		struct reg_11d_new_country *reg_11d_new_cc,
+		uint32_t len);
 #endif /* _WMI_UNIFIED_REG_API_H_ */