summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrunal Soni <ksoni@qca.qualcomm.com>2015-04-02 19:55:33 -0700
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-04-07 17:16:10 +0530
commite762029dac2110cb9cb2a570da88ffebf9e06e64 (patch)
treecdd32d2d9e6641313bbbfd758da72b36e9afbea9
parentfcd9c74f7f4d5c84194de79ff017d236447667b0 (diff)
qcacld-2.0: Fix the comeback timer value if its less than 10ms
When driver receives comeback time value as part of assoc response less than 10ms then it fails to start the timer because of min allowed timer value and due to this timer failure, driver doesn't re-attempt the connection. As part of this patch, when driver receives any value less than 10ms then it will start the timer with 10ms. Change-Id: If32c789084b09db6d00243d668917c9c79f3ef26 CRs-Fixed: 818055
-rw-r--r--CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c b/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c
index 0403d1bb4919..85e990970b7a 100644
--- a/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c
+++ b/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c
@@ -668,6 +668,14 @@ limProcessAssocRspFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo, tANI_U8 sub
(pAssocRsp->TimeoutInterval.timeoutType ==
SIR_MAC_TI_TYPE_ASSOC_COMEBACK) ) {
tANI_U16 timeout_value = pAssocRsp->TimeoutInterval.timeoutValue;
+ if (timeout_value < 10) {
+ /*
+ * if this value is less than 10 then our timer will fail to
+ * start and due to this we will never re-attempt. Better
+ * modify the timer value here.
+ */
+ timeout_value = 10;
+ }
PELOGE(limLog(pMac, LOG1,
FL("ASSOC response with eSIR_MAC_TRY_AGAIN_LATER recvd. "
"Starting timer to wait timeout=%d."),