]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix tx legacy rate reporting
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Thu, 12 Jan 2017 11:02:22 +0000 (13:02 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 13 Jan 2017 13:35:26 +0000 (15:35 +0200)
commit6c51464057704fbbaca6c265ec39410f2294903d
tree3c14f6ea0d0b926d48a03f17c0b4998e23b95f12
parent565b548566a21876fb548f0132ddc5eac31032c1
ath10k: fix tx legacy rate reporting

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 multiply by the hardware reported
rate twice by 10, fix this.

Fixes: e2c9d5e46ec1 ("ath10k: add per peer htt tx stats support for 10.4")
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_rx.c