qcacld-3.0: Fix STA+SAP SCC on DFS when sta_sap_scc_on_dfs_chan = 0

When sta_sap_scc_on_dfs_chan = 0, SAP is not allowed to SCC
with STA on DFS channel. Check the SAP target channel DFS flag
considering the target channel bandwidth.

Change-Id: I321c1055574477fe39ca8569f24a4040c8dc1904
CRs-Fixed: 2756518
This commit is contained in:
Liangwei Dong
2020-08-10 16:35:58 +08:00
committed by snandini
parent 5a9a178921
commit cc9cbfc8de
8 changed files with 194 additions and 83 deletions

View File

@@ -1151,6 +1151,18 @@ QDF_STATUS wlansap_set_dfs_ignore_cac(mac_handle_t mac_handle,
QDF_STATUS wlansap_get_dfs_cac_state(mac_handle_t mac_handle,
eSapDfsCACState_t *cac_state);
/**
* wlansap_get_csa_chanwidth_from_phymode() - function to populate
* channel width from user configured phymode for csa
* @sap_context: sap adapter context
* @chan_freq: target channel frequency (MHz)
*
* Return: phy_ch_width
*/
enum phy_ch_width
wlansap_get_csa_chanwidth_from_phymode(struct sap_context *sap_context,
uint32_t chan_freq);
#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
QDF_STATUS
wlan_sap_set_channel_avoidance(mac_handle_t mac_handle,