1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/ath/ath10k
Wen Gong 3344b99d69 ath10k: add bitrate parse for peer stats info
The rate code and rate kbps report by WMI_TLV_PEER_STATS_INFO_EVENTID
from firmware contains all the bitrate info which include OFDM, CCK,
HT/VHT, and mac80211 need the struct rate_info which include below
parameters:

flags: bitflag of flags from &enum rate_info_flags
mcs: mcs index if struct describes an HT/VHT/HE rate
legacy: bitrate in 100kbit/s for 802.11abg
nss: number of streams (VHT & HE only)
bw: bandwidth (from &enum rate_info_bw)

For OFDM/CCK, its rate kbps indicate the bitrate, for HT/VHT, mac80211
need the above 5 parameters to cacluate the bitrate and show by iw.

After parse the bitrate info, iw show the correct rx bitrate:

localhost ~ # iw wlan0 link
	rx bitrate: 234.0 MBit/s VHT-MCS 3 80MHz VHT-NSS 2
	rx bitrate: 40.5 MBit/s MCS 2 40MHz
	rx bitrate: 72.2 MBit/s MCS 7 short GI
	rx bitrate: 54.0 MBit/s
	rx bitrate: 48.0 MBit/s

Tested with QCA6174 SDIO with firmware WLAN.RMH.4.4.1-00042.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200427080416.8265-4-wgong@codeaurora.org
2020-04-28 12:12:34 +03:00
..
ahb.c ath10k: fix few checkpatch warnings 2020-02-11 16:17:33 +02:00
ahb.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
bmi.c ath10k: add large size for BMI download data for SDIO 2019-11-25 13:53:46 +02:00
bmi.h ath10k: add large size for BMI download data for SDIO 2019-11-25 13:53:46 +02:00
ce.c wireless: Remove call to memset after dma_alloc_coherent 2019-10-15 08:20:16 +03:00
ce.h ath10k: fix descriptor size in ce tx completion for WCN3990 2019-02-26 14:56:19 +02:00
core.c ath10k: add rx bitrate report for SDIO 2020-04-28 12:12:31 +03:00
core.h ath10k: add bitrate parse for peer stats info 2020-04-28 12:12:34 +03:00
coredump.c ath10k: fix backtrace on coredump 2019-10-01 14:17:45 +03:00
coredump.h ath10k: Enable MSA region dump support for WCN3990 2019-09-21 09:48:16 +03:00
debug.c ath10k: enable rx duration report default for wmi tlv 2020-04-27 08:01:25 +03:00
debug.h ath10k: enable rx duration report default for wmi tlv 2020-04-27 08:01:25 +03:00
debugfs_sta.c ath10k: Add peer param map for tlv and non-tlv 2019-09-23 10:27:56 +03:00
hif.h ath10k: hif: make send_complete_check op optional 2020-04-21 15:04:02 +03:00
htc.c ath10k: drop the TX packet which size exceed credit size for sdio 2020-04-23 07:55:53 +03:00
htc.h ath10k: enable alt data of TX path for sdio 2020-04-22 09:43:32 +03:00
htt.c ath10k: add htt TX bundle for sdio 2020-04-22 09:43:29 +03:00
htt.h ath10k: add flush tx packets for SDIO chip 2020-04-22 09:45:03 +03:00
htt_rx.c ath10k: add statistics of tx retries and tx failed when tx complete disable 2020-04-27 08:02:03 +03:00
htt_tx.c ath10k: add flush tx packets for SDIO chip 2020-04-22 09:45:03 +03:00
hw.c ath10k: allow qca988x family to support ack rssi of tx data packets. 2020-03-12 10:20:02 +02:00
hw.h ath10k: add rx bitrate report for SDIO 2020-04-28 12:12:31 +03:00
Kconfig ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
mac.c ath10k: add bitrate parse for peer stats info 2020-04-28 12:12:34 +03:00
mac.h ath10k: add support for hardware rfkill 2019-10-02 20:20:33 +03:00
Makefile ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
p2p.c ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
p2p.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
pci.c ath10k: Fix the race condition in firmware dump work queue 2020-04-06 19:14:36 +03:00
pci.h ath10k: perform crash dump collection in workqueue 2019-04-29 17:24:37 +03:00
qmi.c ath10k: Don't call SCM interface for statically mapped msa region 2020-01-26 12:36:12 +02:00
qmi.h ath10k: Don't call SCM interface for statically mapped msa region 2020-01-26 12:36:12 +02:00
qmi_wlfw_v01.c ath10k: Fix HOST capability QMI incompatibility 2019-09-17 17:03:13 +03:00
qmi_wlfw_v01.h ath10k: Fix HOST capability QMI incompatibility 2019-09-17 17:03:13 +03:00
rx_desc.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
sdio.c ath10k: hif: make send_complete_check op optional 2020-04-21 15:04:02 +03:00
sdio.h ath10k: improve power save performance for sdio 2020-04-21 15:03:57 +03:00
snoc.c ath10k: Use device_get_match_data() to simplify code 2020-01-26 16:30:20 +02:00
snoc.h ath10k: Enable MSA region dump support for WCN3990 2019-09-21 09:48:16 +03:00
spectral.c ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
spectral.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
swap.c ath10k: remove unnecessary 'out of memory' message 2019-06-28 22:14:06 +03:00
swap.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
targaddrs.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
testmode.c ath10k: Fix some typo in some warning messages 2019-12-17 16:24:17 +02:00
testmode.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
testmode_i.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
thermal.c ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
thermal.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
trace.c ath10k: Add wrapper function to ath10k debug 2019-06-25 15:48:47 +03:00
trace.h ftrace: Rework event_create_dir() 2019-11-27 07:44:25 +01:00
txrx.c ath10k: fix kernel null pointer dereference 2020-04-07 07:54:53 +03:00
txrx.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
usb.c ath10k: hif: make send_complete_check op optional 2020-04-21 15:04:02 +03:00
usb.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
wmi-ops.h ath10k: add rx bitrate report for SDIO 2020-04-28 12:12:31 +03:00
wmi-tlv.c ath10k: add rx bitrate report for SDIO 2020-04-28 12:12:31 +03:00
wmi-tlv.h ath10k: add bitrate parse for peer stats info 2020-04-28 12:12:34 +03:00
wmi.c ath10k: Fix typo in warning messages 2020-04-15 11:01:52 +03:00
wmi.h ath10k: add rx bitrate report for SDIO 2020-04-28 12:12:31 +03:00
wow.c ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00
wow.h ath10k: switch to use SPDX license identifiers 2019-02-20 10:33:00 +02:00