qcacld-3.0: Refine SAP force SCC target channel bandwdith selection

Merge the bandwidth selection of the two API
wlansap_get_csa_chanwidth_from_phymode &
wlan_sap_get_concurrent.
Update 5G Force SCC target Max BW selection for dbs hw:
1. Max BW 80Mhz if sta_sap_scc_on_dfs_chan = 1 and Single SAP
2. Max BW 80Mhz if sta_sap_scc_on_dfs_chan = 0 and STA+SAP SCC
3. other case use User configured BW

The above Max BW value will be limited by SAP user configured
BW at the end.

Change-Id: I1b165d1411288ca6845f90103adbf8bbfc34f67d
CRs-Fixed: 2925750
Этот коммит содержится в:
Liangwei Dong
2021-04-20 15:19:46 +08:00
коммит произвёл Madan Koyyalamudi
родитель 5b633bab5e
Коммит 9a7ab6fe1d
10 изменённых файлов: 190 добавлений и 52 удалений

Просмотреть файл

@@ -1166,12 +1166,14 @@ QDF_STATUS wlansap_get_dfs_cac_state(mac_handle_t mac_handle,
* channel width from user configured phymode for csa
* @sap_context: sap adapter context
* @chan_freq: target channel frequency (MHz)
* @tgt_ch_params: target new channel bw parameters to be updated
*
* Return: phy_ch_width
*/
enum phy_ch_width
wlansap_get_csa_chanwidth_from_phymode(struct sap_context *sap_context,
uint32_t chan_freq);
uint32_t chan_freq,
struct ch_params *tgt_ch_params);
#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
QDF_STATUS