From 8a26e4a2be3c5b81a43b5cbb77b9dcb2d1058ef8 Mon Sep 17 00:00:00 2001 From: Sandeep Puligilla Date: Wed, 7 Dec 2016 16:03:43 -0800 Subject: 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 --- core/sap/src/sap_fsm.c | 2 +- core/sme/src/csr/csr_inside_api.h | 2 +- 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 -- cgit v1.2.3