From 7e30ce86c49d045135bfb8ba2085fc87743109d8 Mon Sep 17 00:00:00 2001 From: Pragaspathi Thilagaraj Date: Wed, 18 Sep 2019 21:15:48 +0530 Subject: [PATCH] qcacld-3.0: Update vdev mlme object nss after pe_session nss update The nss value in the "iw link" command and "iw dump station" is updated from the vdev mlme object vdev_mlme->proto.generic.nss. This nss value is updated only from lim_process_assoc_rsp_frame() and lim_extract_ap_capability() only is the ap nss is less than the session_nss. In roaming case the session_nss is updated with the AP nss in lim_populate_peer_rate_set() so in assoc response path the the global mlme vdev nss is not updated. Update the vdev mlme object nss in lim_process_assoc_rsp_frame() from the pe_session. Change-Id: I2575a591f73ee172a83d4681e5f3134d5c9c60b0 CRs-Fixed: 2525710 --- .../src/pe/lim/lim_process_assoc_rsp_frame.c | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c b/core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c index a1a4d9278d..d3e451fa7e 100644 --- a/core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c +++ b/core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c @@ -896,12 +896,12 @@ lim_process_assoc_rsp_frame(struct mac_context *mac_ctx, goto assocReject; } - if (ap_nss < session_entry->nss) { + if (ap_nss < session_entry->nss) session_entry->nss = ap_nss; - lim_objmgr_update_vdev_nss(mac_ctx->psoc, - session_entry->smeSessionId, - ap_nss); - } + + lim_objmgr_update_vdev_nss(mac_ctx->psoc, + session_entry->smeSessionId, + session_entry->nss); if ((session_entry->limMlmState == eLIM_MLM_WT_FT_REASSOC_RSP_STATE) || @@ -989,12 +989,12 @@ lim_process_assoc_rsp_frame(struct mac_context *mac_ctx, if (lim_search_pre_auth_list(mac_ctx, hdr->sa)) lim_delete_pre_auth_node(mac_ctx, hdr->sa); - if (ap_nss < session_entry->nss) { + if (ap_nss < session_entry->nss) session_entry->nss = ap_nss; - lim_objmgr_update_vdev_nss(mac_ctx->psoc, - session_entry->smeSessionId, - ap_nss); - } + + lim_objmgr_update_vdev_nss(mac_ctx->psoc, + session_entry->smeSessionId, + session_entry->nss); lim_update_assoc_sta_datas(mac_ctx, sta_ds, assoc_rsp, session_entry); /*