summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBala Shanmugam <bkamatch@qti.qualcomm.com>2013-11-18 20:03:30 +0530
committerMadan Mohan Koyyalamudi <mkoyyala@qca.qualcomm.com>2013-11-27 20:02:48 -0800
commit92bd2525b1f1100550bac023019b130652eb96d4 (patch)
tree496326b7779a00d7b1ed01ccd6e2f8681cd2c2b9
parent215d3d22661ff53846324e9def613c2ff51e8eb0 (diff)
cld: lim: Add session ID and user priority to DELTS params
Session ID and user priority is required to delete traffic specification added in firmware for discrete solution. Change-Id: Id6e4737fc0e6e8a1387c48ce78eb6219e80ce9ca CRs Fixed : 533518
-rw-r--r--CORE/MAC/src/pe/lim/limAdmitControl.c21
-rw-r--r--CORE/WDA/inc/legacy/halMsgApi.h2
2 files changed, 20 insertions, 3 deletions
diff --git a/CORE/MAC/src/pe/lim/limAdmitControl.c b/CORE/MAC/src/pe/lim/limAdmitControl.c
index 1eecd32e8cd1..17496131fd61 100644
--- a/CORE/MAC/src/pe/lim/limAdmitControl.c
+++ b/CORE/MAC/src/pe/lim/limAdmitControl.c
@@ -1152,6 +1152,7 @@ limSendHalMsgDelTs(
{
tSirMsgQ msg;
tpDelTsParams pDelTsParam;
+ tpPESession psessionEntry = NULL;
if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pDelTsParam, sizeof(tDelTsParams)))
{
@@ -1168,16 +1169,30 @@ limSendHalMsgDelTs(
pDelTsParam->staIdx = staIdx;
pDelTsParam->tspecIdx = tspecIdx;
+ psessionEntry = peFindSessionBySessionId(pMac, sessionId);
+ if(psessionEntry == NULL)
+ {
+ PELOGE(limLog(pMac, LOGE,
+ FL("Session does Not exist with given sessionId :%d "),
+ sessionId);)
+ goto err;
+ }
+ pDelTsParam->sessionId = psessionEntry->smeSessionId;
+ pDelTsParam->userPrio = delts.tsinfo.traffic.userPrio;
+
PELOGW(limLog(pMac, LOGW, FL("calling wdaPostCtrlMsg()"));)
MTRACE(macTraceMsgTx(pMac, sessionId, msg.type));
if(eSIR_SUCCESS != wdaPostCtrlMsg(pMac, &msg))
{
PELOGW(limLog(pMac, LOGW, FL("wdaPostCtrlMsg() failed"));)
- palFreeMemory(pMac->hHdd, (tANI_U8*)pDelTsParam);
- return eSIR_FAILURE;
+ goto err;
}
- return eSIR_SUCCESS;
+ return eSIR_SUCCESS;
+
+err:
+ palFreeMemory(pMac->hHdd, (tANI_U8*)pDelTsParam);
+ return eSIR_FAILURE;
}
/** -------------------------------------------------------------
diff --git a/CORE/WDA/inc/legacy/halMsgApi.h b/CORE/WDA/inc/legacy/halMsgApi.h
index 25b9bfcefecc..340cf288f12d 100644
--- a/CORE/WDA/inc/legacy/halMsgApi.h
+++ b/CORE/WDA/inc/legacy/halMsgApi.h
@@ -1003,6 +1003,8 @@ typedef struct
tANI_U16 staIdx;
tANI_U16 tspecIdx; //TSPEC identifier uniquely identifying a TSPEC for a STA in a BSS
tSirMacAddr bssId; //TO SUPPORT BT-AMP
+ tANI_U8 sessionId;
+ tANI_U8 userPrio; //TSPEC identifier uniquely identifying a TSPEC for a STA in a BSS
} tDelTsParams, *tpDelTsParams;