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
这个提交包含在:
Ashish Kumar Dhanotiya
2019-06-12 20:51:36 +05:30
提交者 nshrivas
父节点 7040d2b4e8
当前提交 2168aadfa4
修改 9 个文件,包含 180 行新增1 行删除

查看文件

@@ -95,6 +95,39 @@
0, \
"enable/disable ETSI SRD channels in master mode")
#ifdef SAP_AVOID_ACS_FREQ_LIST
#define SAP_AVOID_ACS_FREQ_LIST_DEFAULT ""
/*
* <ini>
* sap_avoid_acs_freq_list - Avoid configured frequencies from acs
* @Default: No frequencies are configured, it means consider all
* the frequencies for acs
*
* This ini is to configure the frequencies which needs to be
* avoided during acs and sap will not come up on these channels
* Ex: sap_avoid_acs_freq_list=2412,2417,2422,2427,2467,2472
*
* Related: Feature flag SAP_AVOID_ACS_FREQ_LIST
*
* Supported Feature: SAP
*
* Usage: External
*
* </ini>
*/
#define CFG_SAP_AVOID_ACS_FREQ_LIST CFG_INI_STRING( \
"sap_avoid_acs_freq_list", \
0, \
CFG_VALID_CHANNEL_LIST_STRING_LEN, \
SAP_AVOID_ACS_FREQ_LIST_DEFAULT, \
"Avoid configured frequencies during acs")
#define CFG_SAP_AVOID_ACS_FREQ_LIST_ALL CFG(CFG_SAP_AVOID_ACS_FREQ_LIST)
#else
#define CFG_SAP_AVOID_ACS_FREQ_LIST_ALL
#endif
/*
* <ini>
* restart_beaconing_on_chan_avoid_event - control the beaconing entity to move
@@ -217,6 +250,7 @@
CFG(CFG_INDOOR_CHANNEL_SUPPORT) \
CFG(CFG_SCAN_11D_INTERVAL) \
CFG(CFG_VALID_CHANNEL_LIST) \
CFG(CFG_COUNTRY_CODE)
CFG(CFG_COUNTRY_CODE) \
CFG_SAP_AVOID_ACS_FREQ_LIST_ALL
#endif /* CFG_MLME_REG_H__ */