From: Kalle Valo <kalle.valo@iki.fi>
To: Vivek Natarajan <vivek.natraj@gmail.com>
Cc: linux-wireless@vger.kernel.org,
Johannes Berg <johannes@sipsolutions.net>
Subject: Re: [RFC PATCH 2/2] mac80211: Reset dynamic ps timer in Rx path.
Date: Fri, 05 Feb 2010 14:25:14 +0200 [thread overview]
Message-ID: <87sk9fj2dx.fsf@purkki.valot.fi> (raw)
In-Reply-To: <8e92b4101002040212k6a8e594ao6191fda61ca867b4@mail.gmail.com> (Vivek Natarajan's message of "Thu\, 4 Feb 2010 15\:42\:00 +0530")
Vivek Natarajan <vivek.natraj@gmail.com> writes:
>>> + if ((local->hw.flags & IEEE80211_HW_NEEDS_RX_PS_RESET) &&
>>> + ieee80211_is_data(hdr->frame_control) &&
>>> + !is_multicast_ether_addr(hdr->addr1)) {
>>> + if (local->hw.conf.dynamic_ps_timeout > 0 && local->ps_sdata) {
>>> + mod_timer(&local->dynamic_ps_timer, jiffies +
>>> + msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout));
>>> + }
>>> + }
>>
>> What if CONF_PS is set? You need to take that into account here and
>> disable powersave when it's enabled.
>
> With ath9k, for a data frame(non-multicast) to reach mac80211,
> CONF_PS should have been disabled. in other words,a data packet will
> not reach mac80211 when CONF_PS is set. Hence that check might be
> redundant here.
I checked this now, and that indeed is the case. So no need to check
CONF_PS here.
--
Kalle Valo
next prev parent reply other threads:[~2010-02-05 12:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 6:54 [RFC PATCH 1/2] mac80211: Retry null data frame for power save Vivek Natarajan
2010-02-04 6:54 ` [RFC PATCH 2/2] mac80211: Reset dynamic ps timer in Rx path Vivek Natarajan
2010-02-04 8:14 ` Johannes Berg
2010-02-04 10:15 ` Vivek Natarajan
2010-02-04 8:59 ` Kalle Valo
2010-02-04 10:12 ` Vivek Natarajan
2010-02-05 12:25 ` Kalle Valo [this message]
2010-02-04 8:25 ` [RFC PATCH 1/2] mac80211: Retry null data frame for power save Johannes Berg
2010-02-04 9:14 ` Kalle Valo
2010-02-04 9:00 ` 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=87sk9fj2dx.fsf@purkki.valot.fi \
--to=kalle.valo@iki.fi \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=vivek.natraj@gmail.com \
/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).