summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAgrawal Ashish <ashishka@qti.qualcomm.com>2016-08-05 21:12:57 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-08-08 16:10:52 +0530
commit40e386a631c1a3fba89181f30126f5216ff26787 (patch)
tree97e62b8a53a4d49c1de9c40dfb95091970d42872
parent7c10e229f3bb0ebd8d8cf8e097513db11e7aa2f8 (diff)
qcacld-2.0: Fix SAP start failure issue
At the time of driver load, sap session is opened as part of hdd_init_ap_mode but in case of sap restart, sme_OpenSession is called from sapFsm. At the time of opening session, sme_OpenSession register WLANSAP_RoamCallback callback for connection status. If this callback is not registered, HDD will not get connection status and HDD will start cleanup after SAP connection timeout which will result in SAP failure. Need to register WLANSAP_RoamCallback as part of sme_OpenSession when session is not created as part of hdd_init_ap_mode. Change-Id: Ifd2cec5fec432f1dcd2b39c59df1f1c5b13c55d5 CRs-Fixed: 1051097
-rw-r--r--CORE/SAP/src/sapFsm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/CORE/SAP/src/sapFsm.c b/CORE/SAP/src/sapFsm.c
index 54de7bbab5d8..605b8ca88c7f 100644
--- a/CORE/SAP/src/sapFsm.c
+++ b/CORE/SAP/src/sapFsm.c
@@ -3438,8 +3438,7 @@ sapFsm
"failed to get vdev type");
return VOS_STATUS_E_FAILURE;
}
- /* Open SME Session for scan */
- vosStatus = sme_OpenSession(hHal, NULL,
+ vosStatus = sme_OpenSession(hHal, &WLANSAP_RoamCallback,
sapContext, sapContext->self_mac_addr,
&sapContext->sessionId, type, subtype);
if (VOS_STATUS_SUCCESS != vosStatus) {
@@ -3464,9 +3463,6 @@ sapFsm
*/
vosStatus = sapGotoChannelSel(sapContext, sapEvent, VOS_FALSE);
- /* Transition from eSAP_DISCONNECTED to eSAP_CH_SELECT (both without substates) */
- VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_INFO_HIGH, "In %s, from state %s => %s",
- __func__, "eSAP_DISCONNECTED", "eSAP_CH_SELECT");
}
else if (msg == eSAP_DFS_CHANNEL_CAC_START)
{