linux/drivers/net/wireless/ath/ath10k
Wen Gong 59a022cc14 ath10k: add statistics of tx retries and tx failed when tx complete disable
When tx complete is disabled, all tx status will be set with status
HTT_TX_COMPL_STATE_ACK and indicate to mac80211 by ieee80211_tx_status,
then it does not have the statistics for retries and failed packets.
count of tx retries and tx failed of command "iw wlan0 station dump"
are both 0. If tx complete is not disabled, then firmware report the
tx status and ath10k indicate the status to mac80211, then mac80211
save the statistics and command "iw wlan0 station dump" show them.

for example:
localhost ~ # iw dev wlan0 station dump
Station 3c:28:6d:96:fd:69 (on wlan0)
	inactive time:	5 ms
	rx bytes:	1325012
	rx packets:	6477
	tx bytes:	85264
	tx packets:	518
	tx retries:	0
	tx failed:	0

This patch only effect chips with tx complete disabled, e.g. SDIO.

with this patch, output of command "iw dev wlan0 station dump":
Station c4:04:15:5d:97:22 (on wlan0)
        inactive time:  608 ms
        rx bytes:       180366
        rx packets:     991
        tx bytes:       98765577
        tx packets:     64624
        tx retries:     14682
        tx failed:      47086

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/20200423024134.10601-1-wgong@codeaurora.org
2020-04-27 08:02:03 +03:00
..
ahb.c ath10k: fix few checkpatch warnings 2020-02-11 16:17:33 +02:00
ahb.h
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
core.c ath10k: enable alt data of TX path for sdio 2020-04-22 09:43:32 +03:00
core.h ath10k: add statistics of tx retries and tx failed when tx complete disable 2020-04-27 08:02:03 +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: disable TX complete indication of htt for sdio 2020-04-09 17:48:50 +03:00
Kconfig
mac.c ath10k: add statistics of tx retries and tx failed when tx complete disable 2020-04-27 08:02:03 +03:00
mac.h ath10k: add support for hardware rfkill 2019-10-02 20:20:33 +03:00
Makefile
p2p.c
p2p.h
pci.c ath10k: Fix the race condition in firmware dump work queue 2020-04-06 19:14:36 +03:00
pci.h
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
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
spectral.h
swap.c
swap.h
targaddrs.h
testmode.c ath10k: Fix some typo in some warning messages 2019-12-17 16:24:17 +02:00
testmode.h
testmode_i.h
thermal.c
thermal.h
trace.c
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
usb.c ath10k: hif: make send_complete_check op optional 2020-04-21 15:04:02 +03:00
usb.h
wmi-ops.h
wmi-tlv.c ath10k: enable radar detection in secondary segment 2020-04-06 19:25:03 +03:00
wmi-tlv.h ath10k: add support for hardware rfkill 2019-10-02 20:20:33 +03:00
wmi.c ath10k: Fix typo in warning messages 2020-04-15 11:01:52 +03:00
wmi.h ath10k: enable radar detection in secondary segment 2020-04-06 19:25:03 +03:00
wow.c
wow.h