Skip to contentSkip to conversation

ath10k: Fix Tx legacy rate reporting

PATCH In review Mohammed Shafi Shajakhan 2 participants 2 messages Jan 10, 2017 – Jan 13, 2017 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath10k: Fix Tx legacy rate reporting

From: Mohammed Shafi Shajakhan <[email protected]>

Tx legacy rate is reported 10 fold, as below

iw dev wlan#N station dump | grep "tx bitrate"
tx bitrate: 240.0 MBit/s

This is because by mistake we muliply by the hardware reported rate twice by 10, fix this.

Fixes cec17c382140 ("ath10k: add per peer htt tx stats support for 10.4")
---
 drivers/net/wireless/ath/ath10k/htt_rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/htt_rx.c +1 -1
index cb86530..ae10fe1 100644
@@ -2247,7 +2247,7 @@ static inline bool is_valid_legacy_rate(u8 rate)
 		rate *= 10;
 		if (rate == 60 && txrate.flags == WMI_RATE_PREAMBLE_CCK)
 			rate = rate - 5;
-		arsta->txrate.legacy = rate * 10;
+		arsta->txrate.legacy = rate;
 	} else if (txrate.flags == WMI_RATE_PREAMBLE_HT) {
 		arsta->txrate.flags = RATE_INFO_FLAGS_MCS;
 		arsta->txrate.mcs = txrate.mcs;
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · Mohammed Shafi Shajakhan

From: Mohammed Shafi Shajakhan <[email protected]>

Tx legacy rate is reported 10 fold, as below

Quoted 8 lines

iw dev wlan#N station dump | grep "tx bitrate"
tx bitrate: 240.0 MBit/s

This is because by mistake we muliply by the hardware reported rate twice by 10, fix this.

Fixes cec17c382140 ("ath10k: add per peer htt tx stats support for 10.4")

Patch applied to ath-next branch of ath.git, thanks.

cd59102779ac ath10k: fix tx legacy rate reporting

Signature · 6 lines
https://patchwork.kernel.org/patch/9508075/

Documentation about submitting wireless patches and checking status
from patchwork:

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches