qcacmn: Register event handler for new chan_list evt

Register the event handler for new WMI event,
WMI_REG_CHAN_LIST_CC_EXT_EVENTID. Extract the parameters to be used when
building the channel lists in the regulatory component. Update the reg
rule parsing function to include the new PSD flag and PSD power levels.

Change-Id: I0f5a747f98e43ac3d43b4aa1fb5958f0eac69a9d
CRs-fixed: 2843793
Šī revīzija ir iekļauta:
Lincoln Tran
2020-12-22 15:48:31 -08:00
revīziju iesūtīja snandini
vecāks caa1764721
revīzija 28f0da1660
5 mainīti faili ar 415 papildinājumiem un 22 dzēšanām

Parādīt failu

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2021 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
@@ -25,13 +25,13 @@
#include "reg_services_public_struct.h"
/**
* reg_chan_list_update_handler() - function to update channel list
* wmi_extract_reg_chan_list_update_event() - function to update channel list
* @wmi_handle: wmi handle
* @event_buf: event buffer
* @reg_info regulatory info
* @reg_info: regulatory info
* @len: length of buffer
*
* Return: 0 for success or error code
* Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
*/
QDF_STATUS wmi_extract_reg_chan_list_update_event(
wmi_unified_t wmi_handle,
@@ -39,6 +39,23 @@ QDF_STATUS wmi_extract_reg_chan_list_update_event(
struct cur_regulatory_info *reg_info,
uint32_t len);
#ifdef CONFIG_BAND_6GHZ
/**
* wmi_extract_reg_chan_list_ext_update_event() - function to update the
* extended channel list
* @wmi_handle: wmi handle
* @evt_buf: event buffer
* @reg_info: regulatory info
* @len: length of buffer
*
* Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
*/
QDF_STATUS wmi_extract_reg_chan_list_ext_update_event(wmi_unified_t wmi_handle,
uint8_t *evt_buf,
struct cur_regulatory_info *reg_info,
uint32_t len);
#endif
/*
* wmi_unified_send_stop_11d_scan_cmd() - stop 11d scan
* @wmi_handle: wmi handle