Browse Source

qcacld-3.0: Fix the session Nss value when 2x2 is disabled

Set the session Nss value to 1 when the 2x2 configuration is
disabled.

Change-Id: Idabc3fa16cbaa416246fff9efa6b1d114e5ec3fe
CRs-Fixed: 2237662
Kiran Kumar Lokere 7 years ago
parent
commit
bc6fb2f624
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core/mac/src/pe/lim/lim_process_sme_req_messages.c

+ 4 - 0
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -797,6 +797,8 @@ __lim_handle_sme_start_bss_request(tpAniSirGlobal mac_ctx, uint32_t *msg_buf)
 		pe_debug("persona - %d, nss - %d",
 				session->pePersona, session->vdev_nss);
 		session->nss = session->vdev_nss;
+		if (!mac_ctx->roam.configParam.enable2x2)
+			session->nss = 1;
 		/*
 		 * Allocate memory for the array of
 		 * parsed (Re)Assoc request structure
@@ -1434,6 +1436,8 @@ __lim_process_sme_join_req(tpAniSirGlobal mac_ctx, uint32_t *msg_buf)
 		else
 			session->vdev_nss = vdev_type_nss->sta;
 		session->nss = session->vdev_nss;
+		if (!mac_ctx->roam.configParam.enable2x2)
+			session->nss = 1;
 		session->vhtCapability =
 			IS_DOT11_MODE_VHT(session->dot11mode);
 		if (session->vhtCapability) {