* Question on power-save
@ 2011-01-27 0:49 Ben Greear
2011-01-27 13:34 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Ben Greear @ 2011-01-27 0:49 UTC (permalink / raw)
To: linux-wireless
I was looking at this ps_enable method:
static void ieee80211_offchannel_ps_enable(struct ieee80211_sub_if_data *sdata)
{
struct ieee80211_local *local = sdata->local;
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
local->offchannel_ps_enabled = false;
/* FIXME: what to do when local->pspolling is true? */
del_timer_sync(&local->dynamic_ps_timer);
del_timer_sync(&ifmgd->bcn_mon_timer);
del_timer_sync(&ifmgd->conn_mon_timer);
cancel_work_sync(&local->dynamic_ps_enable_work);
if (local->hw.conf.flags & IEEE80211_CONF_PS) {
local->offchannel_ps_enabled = true;
local->hw.conf.flags &= ~IEEE80211_CONF_PS;
ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_PS);
}
I must be missing something, but it appears that the code above _disables_
power-save instead of enables it?
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question on power-save
2011-01-27 0:49 Question on power-save Ben Greear
@ 2011-01-27 13:34 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2011-01-27 13:34 UTC (permalink / raw)
To: Ben Greear; +Cc: linux-wireless
On Wed, 2011-01-26 at 16:49 -0800, Ben Greear wrote:
> I was looking at this ps_enable method:
>
> static void ieee80211_offchannel_ps_enable(struct ieee80211_sub_if_data *sdata)
If you read the comment in front of the function, is it clearer?
Yes, it disables PS locally, but it tells the AP we've gone to PS.
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-27 13:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-27 0:49 Question on power-save Ben Greear
2011-01-27 13:34 ` Johannes Berg
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).