From e86b2ff6e2acd699dbdf8a2ca2f9347850592622 Mon Sep 17 00:00:00 2001 From: Himanshu Agarwal Date: Wed, 9 May 2018 12:39:52 +0530 Subject: qcacld-3.0: Process setkey confirmation in sme callback In a noisy enviornment setkey confirmation in SME queue is not getting processed due to multiple beacons/probes getting processed in PE queue which is of higher priority than SME queue. Instead of posting a message to SME queue, setkey confirmation will run to completion using sme callback mechanism. Change-Id: Ibe536dad13731e7086c5e0a9ed2a19c11f6e9193 CRs-Fixed: 2233210 --- core/mac/src/pe/lim/lim_send_sme_rsp_messages.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c index dca2356a8249..618221cac22c 100644 --- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c @@ -1618,7 +1618,7 @@ lim_send_sme_set_context_rsp(tpAniSirGlobal pMac, tpPESession psessionEntry, uint8_t smesessionId, uint16_t smetransactionId) { - tSirMsgQ mmhMsg; + cds_msg_t msg; tSirSmeSetContextRsp *pSirSmeSetContextRsp; pSirSmeSetContextRsp = qdf_mem_malloc(sizeof(tSirSmeSetContextRsp)); @@ -1638,15 +1638,15 @@ lim_send_sme_set_context_rsp(tpAniSirGlobal pMac, pSirSmeSetContextRsp->sessionId = smesessionId; pSirSmeSetContextRsp->transactionId = smetransactionId; - mmhMsg.type = eWNI_SME_SETCONTEXT_RSP; - mmhMsg.bodyptr = pSirSmeSetContextRsp; - mmhMsg.bodyval = 0; + msg.type = eWNI_SME_SETCONTEXT_RSP; + msg.bodyptr = pSirSmeSetContextRsp; + msg.bodyval = 0; if (NULL == psessionEntry) { MTRACE(mac_trace(pMac, TRACE_CODE_TX_SME_MSG, - NO_SESSION, mmhMsg.type)); + NO_SESSION, msg.type)); } else { MTRACE(mac_trace(pMac, TRACE_CODE_TX_SME_MSG, - psessionEntry->peSessionId, mmhMsg.type)); + psessionEntry->peSessionId, msg.type)); } #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM /* FEATURE_WLAN_DIAG_SUPPORT */ @@ -1654,7 +1654,7 @@ lim_send_sme_set_context_rsp(tpAniSirGlobal pMac, psessionEntry, (uint16_t) resultCode, 0); #endif /* FEATURE_WLAN_DIAG_SUPPORT */ - lim_sys_process_mmh_msg_api(pMac, &mmhMsg, ePROT); + pMac->lim.sme_msg_callback(pMac, &msg); } /*** end lim_send_sme_set_context_rsp() ***/ /** -- cgit v1.2.3