diff options
| author | Hong Shi <hongsh@codeaurora.org> | 2016-12-21 20:09:47 +0800 |
|---|---|---|
| committer | Ashish kumar goswami <agoswa@codeaurora.org> | 2017-01-04 15:50:06 +0530 |
| commit | 078e69b5becc6171081115ddcd5fb8a64b443974 (patch) | |
| tree | c80ccf457f08bf9c8bbe99eea3dd8c7901d42b4e /CORE/SAP/src/sapModule.c | |
| parent | 50f430f60b3cd29d11901e4e4062b442e3491e31 (diff) | |
qcacld-2.0: Add ACS weight config option
Currently, ACS weights are hardcoded. This change is to make acs weights
configurable. The ini option gAutoChannelSelectWeight is defined as
combination of various acs weights, 4 bits for each. The availble acs
weights are rssi, bss count, noise floor, channel free, tx power range,
tx power throughput.
It will be modulated to original weights so no need to change the max
weight existed.
This change also fixed below bugs of ACS algorithm:
1. used original count statistics instead of delta value
2. wrong computation of channel free status
CRs-Fixed: 1103995
Change-Id: If8faa8c6ad9789df9d31a7377d9fbe53e9504019
Diffstat (limited to 'CORE/SAP/src/sapModule.c')
| -rw-r--r-- | CORE/SAP/src/sapModule.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CORE/SAP/src/sapModule.c b/CORE/SAP/src/sapModule.c index a8bc5d955036..607d7e08e395 100644 --- a/CORE/SAP/src/sapModule.c +++ b/CORE/SAP/src/sapModule.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -654,6 +654,7 @@ WLANSAP_SetScanAcsChannelParams(tsap_Config_t *pConfig, #endif pSapCtx->scanBandPreference = pConfig->scanBandPreference; pSapCtx->acsBandSwitchThreshold = pConfig->acsBandSwitchThreshold; + pSapCtx->auto_channel_select_weight = pConfig->auto_channel_select_weight; pSapCtx->pUsrContext = pUsrContext; pSapCtx->enableOverLapCh = pConfig->enOverLapCh; /* @@ -774,6 +775,8 @@ WLANSAP_StartBss #endif pSapCtx->scanBandPreference = pConfig->scanBandPreference; pSapCtx->acsBandSwitchThreshold = pConfig->acsBandSwitchThreshold; + pSapCtx->auto_channel_select_weight = + pConfig->auto_channel_select_weight; pSapCtx->pUsrContext = pUsrContext; pSapCtx->enableOverLapCh = pConfig->enOverLapCh; pSapCtx->acs_cfg = &pConfig->acs_cfg; |
