소스 검색

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)