summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja Mani <rmani@qti.qualcomm.com>2013-11-24 17:34:51 +0530
committerPrakash Dhavali <pdhavali@qca.qualcomm.com>2013-12-03 14:39:35 -0800
commit09021724ccaabf31dbb0ebed56f4e6f36b124e73 (patch)
treee9dd51acce7f773e18e6ece928ee4beda1c0b065
parentadaa84d3aecddf5dc7475dd14708a80d6afefa93 (diff)
cld: Fix abort scan failures
Session ID is not extracted properly in eWNI_SME_SCAN_ABORT_IND msg handling. Due to this, incorrect session id was passed to WMA and was causing abort scan request to the firmware with incorrect scan id. Also fixes incorrect logging level in hdd_conf_arp_offload(). Change-Id: I297ce2ad34a51427688cce7545223d16e9433414 CRs-Fixed: 580904
-rw-r--r--CORE/HDD/src/wlan_hdd_early_suspend.c2
-rw-r--r--CORE/MAC/src/pe/lim/limProcessMessageQueue.c17
2 files changed, 12 insertions, 7 deletions
diff --git a/CORE/HDD/src/wlan_hdd_early_suspend.c b/CORE/HDD/src/wlan_hdd_early_suspend.c
index 529baddc5c25..b22abc1d723c 100644
--- a/CORE/HDD/src/wlan_hdd_early_suspend.c
+++ b/CORE/HDD/src/wlan_hdd_early_suspend.c
@@ -713,7 +713,7 @@ VOS_STATUS hdd_conf_arp_offload(hdd_adapter_t *pAdapter, v_BOOL_t fenable)
tSirHostOffloadReq offLoadRequest;
hdd_context_t *pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
- hddLog(VOS_TRACE_LEVEL_ERROR, "%s: \n", __func__);
+ hddLog(VOS_TRACE_LEVEL_INFO, "%s: \n", __func__);
if(fenable)
{
diff --git a/CORE/MAC/src/pe/lim/limProcessMessageQueue.c b/CORE/MAC/src/pe/lim/limProcessMessageQueue.c
index 06b32d655fba..fc5d2a0f6975 100644
--- a/CORE/MAC/src/pe/lim/limProcessMessageQueue.c
+++ b/CORE/MAC/src/pe/lim/limProcessMessageQueue.c
@@ -1258,12 +1258,17 @@ limProcessMessages(tpAniSirGlobal pMac, tpSirMsgQ limMsg)
case eWNI_SME_SCAN_ABORT_IND:
{
- tANI_U8 *pSessionId = (tANI_U8 *)limMsg->bodyptr;
- limProcessAbortScanInd(pMac, *pSessionId);
- vos_mem_free((v_VOID_t *)limMsg->bodyptr);
- limMsg->bodyptr = NULL;
- break;
- }
+ tSirMbMsg *pMsg = limMsg->bodyptr;
+ tANI_U8 sessionId;
+ if (pMsg)
+ {
+ sessionId = (tANI_U8) pMsg->data[0];
+ limProcessAbortScanInd(pMac, sessionId);
+ vos_mem_free((v_VOID_t *)limMsg->bodyptr);
+ limMsg->bodyptr = NULL;
+ }
+ }
+ break;
case eWNI_SME_START_REQ:
case eWNI_SME_SYS_READY_IND:
#ifndef WNI_ASKEY_NON_SUPPORT_FEATURE