mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Make sure join timeout value is less than max allowed
Join timeout value is taken as 10 times beacon interval, however if beacon interval is very large, this will make join timeout value to exceed allowed max, causing join process failure. Make sure to keep join timeout value less than max allowed. Change-Id: If2167e602e3231403fbe2ab1936769f2a1b31383 CRs-Fixed: 2100819
This commit is contained in:
parent
5d340f2a94
commit
e1fbbe0f64
1 changed files with 7 additions and 2 deletions
|
|
@ -4308,14 +4308,19 @@ QDF_STATUS csr_roam_prepare_bss_config(tpAniSirGlobal pMac,
|
|||
* Join timeout: if we find a BeaconInterval in the BssDescription,
|
||||
* then set the Join Timeout to be 10 x the BeaconInterval.
|
||||
*/
|
||||
if (pBssDesc->beaconInterval)
|
||||
if (pBssDesc->beaconInterval) {
|
||||
/* Make sure it is bigger than the minimal */
|
||||
pBssConfig->uJoinTimeOut =
|
||||
QDF_MAX(10 * pBssDesc->beaconInterval,
|
||||
CSR_JOIN_FAILURE_TIMEOUT_MIN);
|
||||
else
|
||||
/* make sure it is less than max allowed */
|
||||
pBssConfig->uJoinTimeOut =
|
||||
QDF_MIN(pBssConfig->uJoinTimeOut,
|
||||
WNI_CFG_JOIN_FAILURE_TIMEOUT_STAMAX);
|
||||
} else {
|
||||
pBssConfig->uJoinTimeOut =
|
||||
CSR_JOIN_FAILURE_TIMEOUT_DEFAULT;
|
||||
}
|
||||
/* validate CB */
|
||||
if ((pBssConfig->uCfgDot11Mode == eCSR_CFG_DOT11_MODE_11N) ||
|
||||
(pBssConfig->uCfgDot11Mode == eCSR_CFG_DOT11_MODE_11N_ONLY) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue