From: Kalle Valo <kvalo@codeaurora.org>
To: Doru <gucea.doru@gmail.com>
Cc: linux-wireless@vger.kernel.org, ath9k_htc_fw@lists.infradead.org,
andra.paraschiv7@gmail.com, costin.raiciu@cs.pub.ro,
dragos.niculescu@cs.pub.ro
Subject: Re: [RFC-PATCH] ath9k_htc: Adjust beacon timers for Power Save
Date: Wed, 15 Feb 2017 11:02:32 +0200 [thread overview]
Message-ID: <87r32z968n.fsf@purkki.adurom.net> (raw)
In-Reply-To: <1487100985-4194-1-git-send-email-gucea.doru@gmail.com> (Doru's message of "Tue, 14 Feb 2017 21:36:25 +0200")
Doru <gucea.doru@gmail.com> writes:
> From: Doru Gucea <gucea.doru@gmail.com>
>
> Each time we receive a beacon we need to adjust the hardware
> timers for next DTIM and next TBTT.
>
> Before this commit, the Power Save behaviour was incorrect.
> The scenario was:
> - STA receives a beacon from AP with TIM unset;
> - mac80211 layers puts the chip to sleep;
> - chip is woken up by mac80211's software timer reponsible for
> beacon miss after 7 * beacon_interval period.
>
> Normally the chip should sleep at most DTIM period. This commit
> configures hardware timers for waking up the chip correctly.
>
> More details on the wiki:
> https://github.com/doru91/linux-stable/wiki/Single-Interface-Power-Save
>
> Signed-off-by: Doru Gucea <gucea.doru@gmail.com>
> ---
> drivers/net/wireless/ath/ath9k/htc_drv_main.c | 4 ++++
> net/mac80211/mlme.c | 6 ++++++
> 2 files changed, 10 insertions(+)
[...]
> --- a/net/mac80211/mlme.c
> +++ b/net/mac80211/mlme.c
> @@ -3536,6 +3536,12 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
> sdata->vif.bss_conf.sync_dtim_count = 0;
> }
>
> + /* trigger hardware timers adjustment
> + * this needs to be done before beacon filtering
> + */
> + changed |= BSS_CHANGED_BEACON_INFO;
> + ieee80211_bss_info_change_notify(sdata, changed);
You shouldn't mix driver and mac80211 changes in the same patch, I
suspect Johannes didn't even notice this change because of that. Create
a new patchset with two patches, one for ath9k and another for mac80211.
--
Kalle Valo
next prev parent reply other threads:[~2017-02-15 9:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 19:36 [RFC-PATCH] ath9k_htc: Adjust beacon timers for Power Save Doru
2017-02-15 9:02 ` Kalle Valo [this message]
2017-02-15 19:03 ` Gucea Doru
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=87r32z968n.fsf@purkki.adurom.net \
--to=kvalo@codeaurora.org \
--cc=andra.paraschiv7@gmail.com \
--cc=ath9k_htc_fw@lists.infradead.org \
--cc=costin.raiciu@cs.pub.ro \
--cc=dragos.niculescu@cs.pub.ro \
--cc=gucea.doru@gmail.com \
--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).