linux/drivers/net/wireless/ath/ath10k
Maharaja Kennadyrajan d70c0d463f ath10k: add debugfs support to get power save state change of STA
This patch helps to get the power save state change of each peer
connected to the AP. With WMI_10_4_PEER_STA_PS_STATECHG_EVENTID
event, ps state of each peer is reported to user space via
debugfs.

Use the below command to get the ps state of each sta:
cat /sys/kernel/debug/ieee80211/phyX/netdev::wlanX/stations/
XX:XX:XX:XX:XX:XX/peer_ps_state

If STA is in power save state, we get the peer_ps_state value as 1.
if STA is not in power save state, we get the peer_ps_state value as 0.
If ps_state event is disabled, we get the peer_ps_state value as 2.

We can enable/disable the ps_state events using the debugfs flag
"ps_state_enable"

echo Y > /sys/kernel/debug/ieee80211/phyX/ath10k/ps_state_enable

Y = 1 to enable and Y = 0 to disable

Tested in QCA4019 with firmware ver 10.4-3.2.1.1-00011

Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-10-01 17:02:08 +03:00
..
ahb.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
ahb.h
bmi.c ath10k: download firmware via diag Copy Engine for QCA6174 and QCA9377. 2018-09-06 19:10:05 +03:00
bmi.h ath10k: download firmware via diag Copy Engine for QCA6174 and QCA9377. 2018-09-06 19:10:05 +03:00
ce.c ath10k: introduce CE_ATTR_POLL attribute for polling pipe 2018-09-06 18:55:22 +03:00
ce.h ath10k: introduce CE_ATTR_POLL attribute for polling pipe 2018-09-06 18:55:22 +03:00
core.c ath10k: remove num_peers in hw_params for most targets 2018-10-01 16:55:22 +03:00
core.h ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
coredump.c ath10k: add memory dump support for QCA9888 and QCA99X0 2018-05-25 12:46:05 +03:00
coredump.h ath10k: add memory dump support QCA9984 2018-03-29 11:54:32 +03:00
debug.c ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
debug.h ath10k: add debugfs entry to enable extended tx stats 2018-09-06 19:02:34 +03:00
debugfs_sta.c ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
hif.h ath10k: add support to get target info from hif ops 2018-04-19 18:52:51 +03:00
htc.c ath10k: DMA related fixes for high latency devices 2018-09-06 19:14:37 +03:00
htc.h ath10k: sdio: allocate correct size for RECV_1MORE_BLOCK rx packets 2018-07-02 17:21:37 +03:00
htt_rx.c ath10k: htt: High latency RX support 2018-09-06 19:15:26 +03:00
htt_tx.c ath10k: htt: High latency TX support 2018-09-06 19:15:17 +03:00
htt.c ath10k: add inlined wrappers for htt tx ops 2018-04-19 19:19:28 +03:00
htt.h ath10k: remove duplicated includes 2018-10-01 16:57:18 +03:00
hw.c ath10k: download firmware via diag Copy Engine for QCA6174 and QCA9377. 2018-09-06 19:10:05 +03:00
hw.h ath10k: add bus type check in ath10k_init_hw_params 2018-09-06 19:14:08 +03:00
Kconfig ath10k: allow ATH10K_SNOC with COMPILE_TEST 2018-09-03 19:58:49 +03:00
mac.c ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
mac.h ath10k: add waiting htt tx complete before wow enable 2018-09-03 19:57:03 +03:00
Makefile ath10k: platform driver for WCN3990 SNOC WLAN module 2018-04-19 18:51:52 +03:00
p2p.c
p2p.h
pci.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
pci.h ath10k: optimize pci diag mem read & write operations 2018-09-06 19:09:44 +03:00
rx_desc.h ath10k: htt: High latency RX support 2018-09-06 19:15:26 +03:00
sdio.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
sdio.h ath10k: rename HTC_HOST_MAX_MSG_PER_BUNDLE define 2018-06-28 12:56:05 +03:00
snoc.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
snoc.h ath10k: snoc: stop including pci.h 2018-06-14 18:15:01 +03:00
spectral.c ath10k: fix spectral scan for QCA9984 and QCA9888 chipsets 2018-06-14 18:09:45 +03:00
spectral.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
swap.c ath10k: update copyright year 2017-12-27 12:22:01 +02:00
swap.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
targaddrs.h ath10k: support extended board data download for dual-band QCA9984 2018-09-06 18:54:11 +03:00
testmode_i.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
testmode.c ath10k: re-enable the firmware fallback mechanism for testmode 2018-05-14 16:44:41 +02:00
testmode.h
thermal.c ath10k: update copyright year 2017-12-27 12:22:01 +02:00
thermal.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
trace.c
trace.h ath10k: fix use-after-free in ath10k_wmi_cmd_send_nowait 2018-03-26 18:13:03 +03:00
txrx.c ath10k: DMA related fixes for high latency devices 2018-09-06 19:14:37 +03:00
txrx.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
usb.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
usb.h
wmi-ops.h ath10k: handle mgmt tx completion event 2018-07-30 20:51:47 +03:00
wmi-tlv.c ath10k: remove duplicated includes 2018-10-01 16:57:18 +03:00
wmi-tlv.h ath10k: handle mgmt tx completion event 2018-07-30 20:51:47 +03:00
wmi.c ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
wmi.h ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
wow.c ath10k: add waiting htt tx complete before wow enable 2018-09-03 19:57:03 +03:00
wow.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00