ソースを参照

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
Naveen Rawat 8 年 前
コミット
90ecd2cf3c
1 ファイル変更10 行追加0 行削除
  1. 10 0
      core/mac/src/pe/lim/lim_prop_exts_utils.c

+ 10 - 0
core/mac/src/pe/lim/lim_prop_exts_utils.c

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