mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Add INI and IOCTL template for SAP ACS feature
Add INI and IOCTL template for SAP ACS feature for documentation. Change-Id: Id8088ee9b1f79c975d15d71c10aca1e05e35f82b CRs-Fixed: 1105602
This commit is contained in:
parent
b114b6726b
commit
bafaff128b
3 changed files with 91 additions and 20 deletions
|
|
@ -5302,24 +5302,76 @@ enum hdd_link_speed_rpt_type {
|
|||
#define CFG_ENABLE_DYNAMIC_DTIM_DEFAULT (0)
|
||||
|
||||
/*
|
||||
* Driver Force ACS is reintroduced for android SAP legacy configuration method.
|
||||
* If Driver force acs is enabled, channel/ hw config from hostapd is ignored.
|
||||
* <ini>
|
||||
* gApAutoChannelSelection - Force ACS from ini
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 0
|
||||
*
|
||||
* This ini is used to set to enable force acs from driver.
|
||||
* If enabled, channel/ hw config from hostapd is ignored.
|
||||
* Driver uses INI params dot11Mode, channel bonding mode and vht chan width
|
||||
* to derive ACS HW mode and operating BW.
|
||||
*
|
||||
* Non android platforms shall not use force ACS method and rely on hostapd
|
||||
* driven ACS method for concurrent SAP ACS configuration, OBSS etc.
|
||||
*
|
||||
* Related: Only applicable if gCoalesingInIBSS is 0
|
||||
*
|
||||
* Supported Feature: SAP
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_FORCE_SAP_ACS "gApAutoChannelSelection"
|
||||
#define CFG_FORCE_SAP_ACS_MIN (0)
|
||||
#define CFG_FORCE_SAP_ACS_MAX (1)
|
||||
#define CFG_FORCE_SAP_ACS_DEFAULT (0)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gAPChannelSelectStartChannel - start channel for ACS
|
||||
* @Min: 0
|
||||
* @Max: 0xFF
|
||||
* @Default: 1
|
||||
*
|
||||
* This ini is used to set start channel for ACS.
|
||||
* ACS scan will choose channel between force_sap_acs_st_ch
|
||||
* and force_sap_acs_end_ch
|
||||
*
|
||||
* Related: Only applicable gAPChannelSelectEndChannel is set
|
||||
*
|
||||
* Supported Feature: SAP
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_FORCE_SAP_ACS_START_CH "gAPChannelSelectStartChannel"
|
||||
#define CFG_FORCE_SAP_ACS_START_CH_MIN (0)
|
||||
#define CFG_FORCE_SAP_ACS_START_CH_MAX (0xFF)
|
||||
#define CFG_FORCE_SAP_ACS_START_CH_DEFAULT (1)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gAPChannelSelectEndChannel - end channel for ACS
|
||||
* @Min: 0
|
||||
* @Max: 0xFF
|
||||
* @Default: 11
|
||||
*
|
||||
* This ini is used to set end channel for ACS.
|
||||
* ACS scan will choose channel between force_sap_acs_st_ch
|
||||
* and force_sap_acs_end_ch
|
||||
*
|
||||
* Related: Only applicable if gAPChannelSelectStartChannel is set
|
||||
*
|
||||
* Supported Feature: SAP
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_FORCE_SAP_ACS_END_CH "gAPChannelSelectEndChannel"
|
||||
#define CFG_FORCE_SAP_ACS_END_CH_MIN (0)
|
||||
#define CFG_FORCE_SAP_ACS_END_CH_MAX (0xFF)
|
||||
|
|
|
|||
|
|
@ -611,29 +611,30 @@ struct reg_table_entry g_registry_table[] = {
|
|||
CFG_ENABLE_LTE_COEX_DEFAULT,
|
||||
CFG_ENABLE_LTE_COEX_MIN,
|
||||
CFG_ENABLE_LTE_COEX_MAX),
|
||||
|
||||
REG_VARIABLE(CFG_FORCE_SAP_ACS, WLAN_PARAM_Integer,
|
||||
struct hdd_config, force_sap_acs,
|
||||
VAR_FLAGS_DYNAMIC_CFG |
|
||||
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_MIN,
|
||||
CFG_FORCE_SAP_ACS_MAX),
|
||||
struct hdd_config, force_sap_acs,
|
||||
VAR_FLAGS_DYNAMIC_CFG |
|
||||
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_MIN,
|
||||
CFG_FORCE_SAP_ACS_MAX),
|
||||
|
||||
REG_VARIABLE(CFG_FORCE_SAP_ACS_START_CH, WLAN_PARAM_Integer,
|
||||
struct hdd_config, force_sap_acs_st_ch,
|
||||
VAR_FLAGS_DYNAMIC_CFG |
|
||||
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_START_CH_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_START_CH_MIN,
|
||||
CFG_FORCE_SAP_ACS_START_CH_MAX),
|
||||
struct hdd_config, force_sap_acs_st_ch,
|
||||
VAR_FLAGS_DYNAMIC_CFG |
|
||||
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_START_CH_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_START_CH_MIN,
|
||||
CFG_FORCE_SAP_ACS_START_CH_MAX),
|
||||
|
||||
REG_VARIABLE(CFG_FORCE_SAP_ACS_END_CH, WLAN_PARAM_Integer,
|
||||
struct hdd_config, force_sap_acs_end_ch,
|
||||
VAR_FLAGS_DYNAMIC_CFG |
|
||||
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_END_CH_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_END_CH_MIN,
|
||||
CFG_FORCE_SAP_ACS_END_CH_MAX),
|
||||
struct hdd_config, force_sap_acs_end_ch,
|
||||
VAR_FLAGS_DYNAMIC_CFG |
|
||||
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_END_CH_DEFAULT,
|
||||
CFG_FORCE_SAP_ACS_END_CH_MIN,
|
||||
CFG_FORCE_SAP_ACS_END_CH_MAX),
|
||||
|
||||
REG_VARIABLE(CFG_AP_KEEP_ALIVE_PERIOD_NAME, WLAN_PARAM_Integer,
|
||||
struct hdd_config, apKeepAlivePeriod,
|
||||
|
|
|
|||
|
|
@ -620,6 +620,24 @@ static const struct ccp_freq_chan_map freq_chan_map[] = {
|
|||
* </ioctl>
|
||||
*/
|
||||
#define WE_PPS_RSSI_CHECK 53
|
||||
/*
|
||||
* <ioctl>
|
||||
* setAutoChannel - set ACS enable/disable
|
||||
*
|
||||
* @INPUT: None
|
||||
*
|
||||
* @OUTPUT: None
|
||||
*
|
||||
* This IOCTL is used to set SAP ACS eanble/disable
|
||||
*
|
||||
* @E.g: iwpriv wlan0 setAutoChannel 0
|
||||
*
|
||||
* Supported Feature: SAP
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ioctl>
|
||||
*/
|
||||
#define WE_SET_SAP_AUTO_CHANNEL_SELECTION 54
|
||||
/*
|
||||
* <ioctl>
|
||||
|
|
|
|||
Loading…
Reference in a new issue