diff --git a/wmi_unified_param.h b/wmi_unified_param.h index 728bde28cf..0d7e0b1eba 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -5085,6 +5085,7 @@ typedef enum { wmi_atf_peer_stats_event_id, wmi_peer_delete_response_event_id, wmi_pdev_csa_switch_count_status_event_id, + wmi_reg_chan_list_cc_event_id, wmi_events_max, } wmi_conv_event_id; diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 112fceb5cb..c1e0a89a8e 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1275,6 +1275,11 @@ QDF_STATUS (*send_dfs_phyerr_offload_en_cmd)(wmi_unified_t wmi_handle, uint32_t pdev_id); QDF_STATUS (*send_dfs_phyerr_offload_dis_cmd)(wmi_unified_t wmi_handle, uint32_t pdev_id); +QDF_STATUS (*extract_reg_chan_list_update_event)(wmi_unified_t wmi_handle, + uint8_t *evt_buf, + struct cur_regulatory_info + *reg_info, + uint32_t len); }; struct target_abi_version { diff --git a/wmi_unified_reg_api.h b/wmi_unified_reg_api.h new file mode 100644 index 0000000000..e986536e5b --- /dev/null +++ b/wmi_unified_reg_api.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * + * Permission to use, copy, modify, and/or distribute this software for + * any purpose with or without fee is hereby granted, provided that the + * above copyright notice and this permission notice appear in all + * copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL + * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE + * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ +/** + * DOC: This file contains the API definitions for the Unified Wireless Module + * Interface (WMI) which are specific to Regulatory module. + */ + +#ifndef _WMI_UNIFIED_REG_API_H_ +#define _WMI_UNIFIED_REG_API_H_ + +#include "reg_services_public_struct.h" +/** + * reg_chan_list_update_handler() - function to update channel list + * @handle: wma handle + * @event_buf: event buffer + * @len: length of buffer + * + * Return: 0 for success or error code + */ +QDF_STATUS wmi_extract_reg_chan_list_update_event(void *wmi_hdl, + uint8_t *evt_buf, + struct cur_regulatory_info + *reg_info, + uint32_t len); +#endif /* _WMI_UNIFIED_REG_API_H_ */