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
This commit is contained in:
Bala Venkatesh
2018-07-19 12:31:21 +05:30
zatwierdzone przez nshrivas
rodzic 8b6eac6792
commit 6e3925b99f
3 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@@ -726,7 +726,6 @@ typedef struct sAniSirLim {
/* ////////////////////////////// HT RELATED ////////////////////////////////////////// */
#ifdef FEATURE_WLAN_TDLS
uint8_t gLimAddStaTdls;
uint8_t gLimTdlsLinkMode;
/* ////////////////////////////// TDLS RELATED ////////////////////////////////////////// */
#endif

Wyświetl plik

@@ -3016,7 +3016,6 @@ QDF_STATUS 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 (QDF_STATUS_E_FAILURE == lim_tdls_setup_add_sta(pMac, pAddStaReq, psessionEntry)) {

Wyświetl plik

@@ -5419,10 +5419,8 @@ void lim_process_add_sta_rsp(tpAniSirGlobal mac_ctx, struct scheduler_msg *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);