From 82ec577686b609e86755dd1fd8fabf8111f4d3e9 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Fri, 30 Jun 2017 19:13:02 -0700 Subject: [PATCH] qcacmn: Add support to process channel avoidance event Add support to process channel avoidance event Change-Id: I19ce742406a4778ac0f279faf0bf853bc9069eb0 CRs-Fixed: 2080241 --- wmi_unified_priv.h | 5 +++++ wmi_unified_reg_api.h | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 6d1509a58f..8b95f74fb2 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1332,6 +1332,11 @@ QDF_STATUS (*extract_reg_11d_new_country_event)(wmi_unified_t wmi_handle, struct reg_11d_new_country *reg_11d_country, uint32_t len); +QDF_STATUS (*extract_reg_ch_avoid_event)(wmi_unified_t wmi_handle, + uint8_t *evt_buf, + struct ch_avoid_ind_type *ch_avoid_event, + 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); diff --git a/wmi_unified_reg_api.h b/wmi_unified_reg_api.h index 7bc50f471d..8db288d5d9 100644 --- a/wmi_unified_reg_api.h +++ b/wmi_unified_reg_api.h @@ -82,4 +82,19 @@ QDF_STATUS wmi_extract_reg_11d_new_cc_event(void *wmi_hdl, */ QDF_STATUS wmi_unified_set_user_country_code_cmd_send(void *wmi_hdl, uint8_t pdev_id, struct cc_regdmn_s *rd); + +/** + * wmi_extract_reg_ch_avoid_event() - process freq avoid event + * @wmi_hdl: wmi handle. + * @evt_buf: event buffer + * @ch_avoid_ind: buffer pointer to save the event processed data + * @len: lenght of buffer + * + * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure + */ +QDF_STATUS wmi_extract_reg_ch_avoid_event(void *wmi_hdl, + uint8_t *evt_buf, + struct ch_avoid_ind_type *ch_avoid_ind, + uint32_t len); + #endif /* _WMI_UNIFIED_REG_API_H_ */