summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;