소스 검색

qcacld-3.0: Fix NSS being sent to firmware

Send NSS value to firmware in update_nss as received from AP
in OTA frame, VHT Operation notifcation IE.

Change-Id: Iad92cc3ce634b69397666f574917b5254a73dcda
CRs-Fixed: 1070224
Naveen Rawat 8 년 전
부모
커밋
3ca7483971
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 1
      core/mac/src/pe/lim/lim_process_action_frame.c
  2. 1 2
      core/mac/src/pe/sch/sch_beacon_process.c

+ 2 - 1
core/mac/src/pe/lim/lim_process_action_frame.c

@@ -577,7 +577,8 @@ static void __lim_process_operating_mode_action_frame(tpAniSirGlobal mac_ctx,
 			(operating_mode_frm->OperatingMode.rxNSS + 1)) {
 		sta_ptr->vhtSupportedRxNss =
 			operating_mode_frm->OperatingMode.rxNSS + 1;
-		lim_set_nss_change(mac_ctx, session, sta_ptr->vhtSupportedRxNss,
+		lim_set_nss_change(mac_ctx, session,
+			operating_mode_frm->OperatingMode.rxNSS,
 			sta_ptr->staIndex, mac_hdr->sa);
 	}
 

+ 1 - 2
core/mac/src/pe/sch/sch_beacon_process.c

@@ -494,8 +494,7 @@ void update_nss(tpAniSirGlobal mac_ctx, tpDphHashNode sta_ds,
 		tpSirMacMgmtHdr mgmt_hdr)
 {
 	if (sta_ds->vhtSupportedRxNss != (beacon->OperatingMode.rxNSS + 1)) {
-		sta_ds->vhtSupportedRxNss =
-			beacon->OperatingMode.rxNSS + 1;
+		sta_ds->vhtSupportedRxNss = beacon->OperatingMode.rxNSS;
 		lim_set_nss_change(mac_ctx, session_entry,
 			sta_ds->vhtSupportedRxNss, sta_ds->staIndex,
 			mgmt_hdr->sa);