qcacld-3.0: Set NSS for STA as intersection of self and AP

Host send self nss capability in start Vdev and thus firmware
start SMPS frames during DBS even if peer is 1x1 capable.

To fix set NSS for STA as intersection of self and AP.

Change-Id: I38eeade0456f65f27b335f4ee14db0472507feb0
CRs-Fixed: 2056290
Cette révision appartient à :
Naveen Rawat
2017-05-31 17:27:13 -07:00
révisé par snandini
Parent 811c8d58a2
révision 90ecd2cf3c

Voir le fichier

@@ -205,6 +205,16 @@ lim_extract_ap_capability(tpAniSirGlobal mac_ctx, uint8_t *p_ie,
pe_debug("For special ap, NSS: %d", session->nss);
}
if (session->nss > lim_get_nss_supported_by_beacon(beacon_struct,
session)) {
session->nss = lim_get_nss_supported_by_beacon(beacon_struct,
session);
session->vdev_nss = session->nss;
}
if (session->nss == 1)
session->supported_nss_1x1 = true;
if (beacon_struct->wmeInfoPresent ||
beacon_struct->wmeEdcaPresent ||
beacon_struct->HTCaps.present)