diff options
| author | Bala Venkatesh <bjavvaji@codeaurora.org> | 2018-07-19 12:31:21 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-07-19 12:01:59 -0700 |
| commit | cf274d2a0abf15468422300dd33cba308fbf50cb (patch) | |
| tree | 124646a9cb217b91eea96963f6143ce87977d7bf /core | |
| parent | a60095683d652ac5d0a873ca59cb3916f23eaf15 (diff) | |
qcacld-3.0: Check TDLS peer type in lim_process_add_sta_rsp
Currenly, as part of tdls add sta req gLimAddStaTdls is set to 1.
And as part of add sta response gLimAddStaTdls is checked if 1 to
map tdls add sta response.
This implementation needs to take care of all error cases of
add sta req failure to reset the gLimAddStaTdls value to 0.
Instead check for peer type in add sta rsp.
Change-Id: Ideaff239f743b95a9578806d2ec220e123d4d995
CRs-Fixed: 2281385
Diffstat (limited to 'core')
| -rw-r--r-- | core/mac/inc/ani_global.h | 1 | ||||
| -rw-r--r-- | core/mac/src/pe/lim/lim_process_tdls.c | 1 | ||||
| -rw-r--r-- | core/mac/src/pe/lim/lim_utils.c | 4 |
3 files changed, 1 insertions, 5 deletions
diff --git a/core/mac/inc/ani_global.h b/core/mac/inc/ani_global.h index 68185d41d756..7c831aacb4c6 100644 --- a/core/mac/inc/ani_global.h +++ b/core/mac/inc/ani_global.h @@ -790,7 +790,6 @@ typedef struct sAniSirLim { /* ////////////////////////////// HT RELATED ////////////////////////////////////////// */ #ifdef FEATURE_WLAN_TDLS - uint8_t gLimAddStaTdls; uint8_t gLimTdlsLinkMode; /* ////////////////////////////// TDLS RELATED ////////////////////////////////////////// */ #endif diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c index 686646ad51c6..5cf1f04803e0 100644 --- a/core/mac/src/pe/lim/lim_process_tdls.c +++ b/core/mac/src/pe/lim/lim_process_tdls.c @@ -2974,7 +2974,6 @@ tSirRetStatus lim_process_sme_tdls_add_sta_req(tpAniSirGlobal pMac, goto lim_tdls_add_sta_error; } - pMac->lim.gLimAddStaTdls = true; /* To start with, send add STA request to HAL */ if (eSIR_FAILURE == lim_tdls_setup_add_sta(pMac, pAddStaReq, psessionEntry)) { diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index 19f883b4f9a6..468239a8fc89 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -5472,10 +5472,8 @@ void lim_process_add_sta_rsp(tpAniSirGlobal mac_ctx, tpSirMsgQ msg) else if (LIM_IS_NDI_ROLE(session)) lim_ndp_add_sta_rsp(mac_ctx, session, msg->bodyptr); #ifdef FEATURE_WLAN_TDLS - else if (mac_ctx->lim.gLimAddStaTdls) { + else if (add_sta_params->staType == STA_ENTRY_TDLS_PEER) lim_process_tdls_add_sta_rsp(mac_ctx, msg->bodyptr, session); - mac_ctx->lim.gLimAddStaTdls = false; - } #endif else lim_process_mlm_add_sta_rsp(mac_ctx, msg, session); |
