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
This commit is contained in:
Kiran Kumar Lokere 2018-05-09 19:04:11 -07:00 • committed by nshrivas
commit bc6fb2f624

View file

@ -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) {