linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v3] mac80211 dynamic power save
@ 2008-11-28 19:49 Kalle Valo
  2008-11-28 19:49 ` [RFC v3 1/4] mac80211: enable IEEE80211_CONF_PS only when associated Kalle Valo
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Kalle Valo @ 2008-11-28 19:49 UTC (permalink / raw)
  To: linux-wireless

Here is v3 of my dynamic powersave patches. I have tested them only
with stlc45xx on Nokia N810. I'm also working with iwl3945 and iwlagn
patches based on these patches, I'll try to send them during this
weekend.

These are RFC patches, not yet to be applied. Hopefully in next round
they are ready.

Patch 3 contains a new flag IEEE80211_HW_NO_DYNAMIC_PS. So all drivers
which firmware doesn't support dynamic power save should use this flag
to enable the feature in mac80211. This is a separate patch just for
easier review. If it's ok, I'll fold it to patch 2.

Patch 4 moves the dynamic_ps_timeout to ieee80211_conf struct. That
way the drivers which have dynamic power save support in firmware can
use the same timeout provided by user space. If this ok I'll fold this
to patch 2.

changes in v3:
o add a hw flag to notify that driver doesn't support dynamic power save and
  which will enable mac80211 implementation
o delete dynamic_ps_timer and cancel ps_enable_work during
  association, hopefully it's race free now
o provide timeout value to the drivers, for example iwlwifi should use
  it (example patch under works)
o fix a bad bug in testing IEEE80211_STA_ASSOCIATED flag with && operator

TODO:
o test with iwlwifi (only in-tree driver using IEEE80211_CONF_PS)
o documentation for dynamic_ps_timeout and IEEE80211_HW_NO_DYNAMIC_PS
o prefix ieee80211_ps_[enable|disable]_work with _dynamic

Power save related features which I'll implement later:
o disable power save when software scanning
o beacon period (wakeup period) to the drivers, can be set from user
  space but otherwise is bss's DTIM value

I'll add missing features to the wiki tomorrow.



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-12-02 19:42 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28 19:49 [RFC v3] mac80211 dynamic power save Kalle Valo
2008-11-28 19:49 ` [RFC v3 1/4] mac80211: enable IEEE80211_CONF_PS only when associated Kalle Valo
2008-11-28 22:11   ` Johannes Berg
2008-11-29  6:50     ` Kalle Valo
2008-11-28 19:49 ` [RFC v3 2/4] mac80211: implement dynamic power save Kalle Valo
2008-11-28 22:14   ` Johannes Berg
2008-11-29  6:53     ` Kalle Valo
2008-12-01 19:10   ` Luis R. Rodriguez
2008-12-01 22:40     ` Johannes Berg
2008-12-01 23:49       ` Luis R. Rodriguez
2008-12-02 19:42     ` Kalle Valo
2008-11-28 19:49 ` [RFC v3 3/4] mac80211: add IEEE80211_HW_NO_DYNAMIC_PS flag Kalle Valo
2008-11-28 22:15   ` Johannes Berg
2008-11-29  6:55     ` Kalle Valo
2008-11-28 19:49 ` [RFC v3 4/4] mac80211: move dynamic_ps_timeout to hw.conf Kalle Valo
2008-11-28 22:18   ` Johannes Berg
2008-11-29  7:00     ` Kalle Valo
2008-12-01 19:11   ` Luis R. Rodriguez
2008-12-01 19:41     ` Johannes Berg
2008-12-01 20:36       ` Luis R. Rodriguez
2008-12-01 20:30     ` Kalle Valo

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).