summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Puligilla <spuligil@codeaurora.org>2016-12-07 16:03:43 -0800
committerqcabuildsw <qcabuildsw@localhost>2016-12-09 16:45:22 -0800
commit8a26e4a2be3c5b81a43b5cbb77b9dcb2d1058ef8 (patch)
treec9314013ef31acb86bb750c544c70d5b9df35f5c
parent9569e434c9fc14b5d5247f05065a950ad3e7f727 (diff)
qcacld-3.0: Increase SAP open session timeout value
In failure scenario host got two commands, one is connect request on the STA interface and the second one is add interface/open session on softAP interface. HDD/SAP queues the eSmeCommandRoam first to the SME active list and then eSmeCommandAddStaSession to sme pending list with timeout value of 2 secs at SAP. Connect takes more than 2 secs due to which addStaSession gets timedout. Configure SME active timeout value to 30sec. Increase the wait time at SAP for open session to 30secs which is equal to the SME active command timeout value. Change-Id: I77a0279421566ded7cd0eb7cde7871d3074ec5cf CRs-Fixed: 1096771
-rw-r--r--core/sap/src/sap_fsm.c2
-rw-r--r--core/sme/src/csr/csr_inside_api.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c
index d9018faa04d9..dbbec9fa0a9a 100644
--- a/core/sap/src/sap_fsm.c
+++ b/core/sap/src/sap_fsm.c
@@ -2498,7 +2498,7 @@ QDF_STATUS sap_goto_channel_sel(ptSapContext sap_context,
* Return: QDF_STATUS
*/
-#define SAP_OPEN_SESSION_TIMEOUT 2000
+#define SAP_OPEN_SESSION_TIMEOUT 30000
QDF_STATUS sap_open_session(tHalHandle hHal, ptSapContext sapContext,
uint32_t *session_id)
{
diff --git a/core/sme/src/csr/csr_inside_api.h b/core/sme/src/csr/csr_inside_api.h
index a1a9087dc393..28a14b97a777 100644
--- a/core/sme/src/csr/csr_inside_api.h
+++ b/core/sme/src/csr/csr_inside_api.h
@@ -100,7 +100,7 @@
* The MAX BSSID Count should be lower than the command timeout value and it
* can be of a fraction of 3/4 of the total command timeout value.
* ***************************************************************************/
-#define CSR_ACTIVE_LIST_CMD_TIMEOUT_VALUE (1000*30*4)
+#define CSR_ACTIVE_LIST_CMD_TIMEOUT_VALUE (1000*30)
#ifdef QCA_WIFI_3_0_EMU
#define CSR_ACTIVE_SCAN_LIST_CMD_TIMEOUT (1000*30*20)
#else