summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/mac/src/pe/lim/lim_assoc_utils.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/mac/src/pe/lim/lim_assoc_utils.c b/core/mac/src/pe/lim/lim_assoc_utils.c
index 3ed82c7b70..439f7c2b2e 100644
--- a/core/mac/src/pe/lim/lim_assoc_utils.c
+++ b/core/mac/src/pe/lim/lim_assoc_utils.c
@@ -2546,6 +2546,22 @@ lim_add_sta(tpAniSirGlobal mac_ctx,
add_sta_params->stbc_capable = 0;
}
+ if (session_entry->pePersona == QDF_SAP_MODE ||
+ session_entry->pePersona == QDF_P2P_GO_MODE) {
+ if (session_entry->parsedAssocReq) {
+ uint16_t aid = sta_ds->assocId;
+ /* Get a copy of the already parsed Assoc Request */
+ assoc_req =
+ (tpSirAssocReq) session_entry->parsedAssocReq[aid];
+
+ if (assoc_req) {
+ add_sta_params->wpa_rsn = assoc_req->rsnPresent;
+ add_sta_params->wpa_rsn |=
+ (assoc_req->wpaPresent << 1);
+ }
+ }
+ }
+
lim_update_he_stbc_capable(add_sta_params);
msg_q.type = WMA_ADD_STA_REQ;