qcacld-3.0: Add support to configure avoid acs freq list

Currently there is no ini support to configure frequencies
which needs to be avoided for the acs channel list which
may allow SAP to come up on a channel which is not preferred.

For Example there are many legacy clients which supports
2.4GHz but don't support channel 12 and 13 (or does not have
the capability to detect country change where channel 12 and
13 is valid).
In that case, if SAP comes up on channel 12/13, those legacy
clients won't be able to connect to AP.

Hence, Add a feature flag and ini to configure the frequency
list which can be avoided during acs.

Change-Id: Id106b38228f837ba056eb916004dc012e919ddd2
CRs-Fixed: 2472004
Esse commit está contido em:
Ashish Kumar Dhanotiya
2019-06-12 20:51:36 +05:30
commit de nshrivas
commit 2168aadfa4
9 arquivos alterados com 180 adições e 1 exclusões

Ver arquivo

@@ -1414,6 +1414,34 @@ ucfg_mlme_get_etsi13_srd_chan_in_master_mode(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_SUCCESS;
}
#ifdef SAP_AVOID_ACS_FREQ_LIST
QDF_STATUS
ucfg_mlme_get_acs_avoid_freq_list(struct wlan_objmgr_psoc *psoc,
uint16_t *freq_list, uint8_t *freq_list_num)
{
struct wlan_mlme_psoc_obj *mlme_obj;
qdf_size_t avoid_acs_freq_list_num;
mlme_obj = mlme_get_psoc_obj(psoc);
if (!mlme_obj) {
qdf_uint16_array_parse(
cfg_default(CFG_SAP_AVOID_ACS_FREQ_LIST),
freq_list, CFG_VALID_CHANNEL_LIST_LEN,
&avoid_acs_freq_list_num);
*freq_list_num = avoid_acs_freq_list_num;
mlme_legacy_err("Failed to get MLME Obj");
return QDF_STATUS_E_INVAL;
}
*freq_list_num = mlme_obj->cfg.reg.avoid_acs_freq_list_num;
qdf_mem_copy(freq_list, mlme_obj->cfg.reg.avoid_acs_freq_list,
*freq_list_num * sizeof(uint16_t));
return QDF_STATUS_SUCCESS;
}
#endif
QDF_STATUS
ucfg_mlme_get_11d_in_world_mode(struct wlan_objmgr_psoc *psoc,
bool *value)