Pārlūkot izejas kodu

qcacld-3.0: Add EHT support for the max link speed

Currently EHT rates are not getting filled when the max link speed
configuration is selected. Add support to populate the eht rates
when max link speed report configuration is selected.

Change-Id: Ia93c3ec3db2f7e7ad3e4df5090f407831fdc2397
CRs-Fixed: 3272492
Arun Kumar Khandavalli 2 gadi atpakaļ
vecāks
revīzija
c14d6ed422
1 mainītis faili ar 11 papildinājumiem un 3 dzēšanām
  1. 11 3
      core/hdd/src/wlan_hdd_stats.c

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

@@ -5705,17 +5705,21 @@ bool hdd_report_max_rate(struct hdd_adapter *adapter,
 	if ((3 != rssidx) && !(rate_flags & TX_RATE_LEGACY)) {
 		rate_flag = 0;
 		if (rate_flags & (TX_RATE_VHT80 | TX_RATE_HE80 |
-				TX_RATE_HE160 | TX_RATE_VHT160))
+				TX_RATE_HE160 | TX_RATE_VHT160 |
+				TX_RATE_EHT80 | TX_RATE_EHT160 |
+				TX_RATE_EHT320))
 			mode = 2;
 		else if (rate_flags & (TX_RATE_HT40 |
-			 TX_RATE_VHT40 | TX_RATE_HE40))
+			 TX_RATE_VHT40 | TX_RATE_HE40 | TX_RATE_EHT40))
 			mode = 1;
 		else
 			mode = 0;
 
 		if (rate_flags & (TX_RATE_VHT20 | TX_RATE_VHT40 |
 		    TX_RATE_VHT80 | TX_RATE_HE20 | TX_RATE_HE40 |
-		    TX_RATE_HE80 | TX_RATE_HE160 | TX_RATE_VHT160)) {
+		    TX_RATE_HE80 | TX_RATE_HE160 | TX_RATE_VHT160 |
+		    TX_RATE_EHT20 | TX_RATE_EHT40 | TX_RATE_EHT80 |
+		    TX_RATE_EHT160 | TX_RATE_EHT320)) {
 			stat = ucfg_mlme_cfg_get_vht_tx_mcs_map(hdd_ctx->psoc,
 								&vht_mcs_map);
 			if (QDF_IS_STATUS_ERROR(stat))
@@ -5748,6 +5752,10 @@ bool hdd_report_max_rate(struct hdd_adapter *adapter,
 					max_mcs_idx = 9;
 			}
 
+			if (rate_flags & (TX_RATE_EHT20 | TX_RATE_EHT40 |
+			    TX_RATE_EHT80 | TX_RATE_EHT160 | TX_RATE_EHT320))
+				max_mcs_idx = 13;
+
 			if (rate_flags & (TX_RATE_HE20 | TX_RATE_HE40 |
 			    TX_RATE_HE80 | TX_RATE_HE160)) {
 				max_mcs_idx = 11;