소스 검색

qcacld-3.0: Fix RX MCS invalid

Sometimes the RX MCS index obtained from RX MSDU END is an
invalid value. From SW's perspective, the invalid value should
be disposed of. This change will handle the invalid MCS index.

Change-Id: Iba35889fa4c5ed0d0bbea4a38b5375c1197cdd37
CRs-Fixed: 3368064
jinbaoliu 2 년 전
부모
커밋
9abbbebb5f
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      core/hdd/src/wlan_hdd_stats.c

+ 3 - 1
core/hdd/src/wlan_hdd_stats.c

@@ -6292,8 +6292,10 @@ static int wlan_hdd_get_sta_stats(struct wiphy *wiphy,
 
 		if (tx_mcs_index == INVALID_MCS_IDX)
 			tx_mcs_index = 0;
-		if (rx_mcs_index == INVALID_MCS_IDX)
+		if (rx_mcs_index == INVALID_MCS_IDX) {
 			rx_mcs_index = 0;
+			adapter->hdd_stats.class_a_stat.rx_mcs_index = 0;
+		}
 	}
 
 	hdd_debug("[RSSI %d, RLMS %u, rssi high %d, rssi mid %d, rssi low %d]-"