summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKapil Gupta <kapgupta@codeaurora.org>2017-05-16 12:24:54 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-05-28 21:25:31 -0700
commit6fab12c0a1e4e90f997402d50bf3a7caccb2dc69 (patch)
treedb5b46b3b465fce53b3ef2417c04a5ca170e7503
parent3a08ec3c4762ba23ebaffc52d5ce74a3297b3fbf (diff)
qcacld-2.0: Validate BA tid before accessing
Add changes to validate BA tid in delBA params before accessing it. CRs-Fixed: 2044049 Change-Id: I6e98189ccd1710d9928bc1f585061bd9ff414c49
-rw-r--r--CORE/MAC/src/pe/lim/limProcessActionFrame.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessActionFrame.c b/CORE/MAC/src/pe/lim/limProcessActionFrame.c
index 5a9b9e706c03..5fa47dd97560 100644
--- a/CORE/MAC/src/pe/lim/limProcessActionFrame.c
+++ b/CORE/MAC/src/pe/lim/limProcessActionFrame.c
@@ -1318,7 +1318,10 @@ __limValidateDelBAParameterSet( tpAniSirGlobal pMac,
tDot11fFfDelBAParameterSet baParameterSet,
tpDphHashNode pSta )
{
-tSirMacStatusCodes statusCode = eSIR_MAC_STA_BLK_ACK_NOT_SUPPORTED_STATUS;
+ tSirMacStatusCodes statusCode = eSIR_MAC_STA_BLK_ACK_NOT_SUPPORTED_STATUS;
+
+ if (!(baParameterSet.tid < STACFG_MAX_TC))
+ return statusCode;
// Validate if a BA is active for the requested TID
if( pSta->tcCfg[baParameterSet.tid].fUseBATx ||