linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Maharaja Kennadyrajan <mkenna@codeaurora.org>
To: Kalle Valo <kvalo@codeaurora.org>
Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] ath10k: Add debugfs support to get power save state change of STA
Date: Thu, 27 Sep 2018 10:06:55 +0530	[thread overview]
Message-ID: <7a0f6d9724f75bda6d0554810b4efcb7@codeaurora.org> (raw)
In-Reply-To: <20180926141208.0A87160C86@smtp.codeaurora.org>

On 2018-09-26 7:42 pm, Kalle Valo wrote:
> 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?

[Maha]: Yes, it should be static.

> I fixed this in the pending branch.
[Maha]: Thanks Kalle.

-- 
Regards,
Maha

  parent reply	other threads:[~2018-09-27  4:36 UTC|newest]

Thread overview: 4+ 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-26 14:12 ` Kalle Valo
     [not found] ` <20180926141208.0A87160C86@smtp.codeaurora.org>
2018-09-27  4:36   ` Maharaja Kennadyrajan [this message]
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=7a0f6d9724f75bda6d0554810b4efcb7@codeaurora.org \
    --to=mkenna@codeaurora.org \
    --cc=ath10k@lists.infradead.org \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).