qcacmn: Fetch fw support for fixed channel SAP in coex cases

Currently, firmware sends WMI_WLAN_FREQ_AVOID_EVENTID with set
of frequency ranges to be avoided when it finds LTE operating
around those frequencies. Host driver marks these frequencies
as unsafe and doesn't operate in SAP/P2P-GO mode.

There is a new requirement where SAP can be allowed to operate
in unsafe channels when below conditions are met,
1. Firmware advertises the capability fix_channel_priority in
   WMI_COEX_FIX_CHANNEL_CAPABILITIES through ext2 event.
2. SAP is started in a fixed channel.

Fetch the capability fix_channel_priority sent by firmware and
cache it in wlan_psoc_host_service_ext2_param to support
this feature. Add APIs to cache value received from firmware in
psoc_info->info.service_ext2_param.sap_coex_fixed_chan_support
and to fetch the same.

Change-Id: I8ceb501240bc86d6b004446f9927f4402c487203
CRs-Fixed: 3381399
This commit is contained in:
Srinivas Dasari
2023-01-05 15:42:26 +05:30
committed by Madan Koyyalamudi
parent bcbe6a3d15
commit 8380ebaf9b
10 changed files with 143 additions and 4 deletions

View File

@@ -5082,4 +5082,18 @@ QDF_STATUS
wmi_unified_update_edca_pifs_param(
wmi_unified_t wmi_handle,
struct edca_pifs_vparam *edca_pifs_param);
/**
* wmi_extract_sap_coex_cap_service_ready_ext2() - extract sap coex capability
* @wmi_handle: wmi handle
* @evt_buf: pointer to event buffer
* @cap: It's set to 1 if fixed chan SAP is supported by firmware even when the
* channel is unsafe due to coex.
*
* Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
*/
QDF_STATUS wmi_extract_sap_coex_cap_service_ready_ext2(
wmi_unified_t wmi_handle,
uint8_t *evt_buf,
struct wmi_host_coex_fix_chan_cap *cap);
#endif /* _WMI_UNIFIED_API_H_ */