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

@@ -3201,6 +3201,10 @@ QDF_STATUS
QDF_STATUS (*send_update_edca_pifs_param_cmd)(
wmi_unified_t wmi_handle,
struct edca_pifs_vparam *edca_pifs_param);
QDF_STATUS (*extract_sap_coex_cap_service_ready_ext2)(
wmi_unified_t wmi_handle, uint8_t *event,
struct wmi_host_coex_fix_chan_cap *cap);
};
/* Forward declaration for psoc*/