From: Kalle Valo <kvalo@codeaurora.org>
To: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org,
Maharaja Kennadyrajan <mkenna@codeaurora.org>
Subject: Re: [PATCH] ath10k: Add debugfs support to get power save state change of STA
Date: Wed, 26 Sep 2018 14:12:08 +0000 (UTC) [thread overview]
Message-ID: <20180926141208.3026060C83@smtp.codeaurora.org> (raw)
In-Reply-To: <1537252467-17353-1-git-send-email-mkenna@codeaurora.org>
Maharaja Kennadyrajan <mkenna@codeaurora.org> wrote:
> 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>
This introduced a new warning:
drivers/net/wireless/ath/ath10k/wmi.c:5061:1: warning: symbol 'ath10k_wmi_event_peer_sta_ps_state_chg' was not declared. Should it be static?
I fixed this in the pending branch.
--
https://patchwork.kernel.org/patch/10603779/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
next prev parent reply other threads:[~2018-09-26 14:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-18 6:34 [PATCH] ath10k: Add debugfs support to get power save state change of STA Maharaja Kennadyrajan
2018-09-18 6:34 ` Maharaja Kennadyrajan
2018-09-26 14:12 ` Kalle Valo [this message]
2018-09-26 14:12 ` Kalle Valo
[not found] ` <20180926141208.0A87160C86@smtp.codeaurora.org>
2018-09-27 4:36 ` Maharaja Kennadyrajan
2018-09-27 4:36 ` Maharaja Kennadyrajan
2018-10-01 14:02 ` Kalle Valo
2018-10-01 14:02 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180926141208.3026060C83@smtp.codeaurora.org \
--to=kvalo@codeaurora.org \
--cc=ath10k@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mkenna@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.