linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFCv2 0/3] mesh power save - hardware doze
@ 2013-02-06 11:48 Marco Porsch
  2013-02-06 11:48 ` [RFCv2 1/3] mac80211: move mesh sync beacon handler into neighbour_update Marco Porsch
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Marco Porsch @ 2013-02-06 11:48 UTC (permalink / raw)
  To: johannes, mcgrof, jouni, vthiagar, senthilb
  Cc: linux-wireless, devel, ath9k-devel, Marco Porsch

Commits #2 and #3 implement the actual power saving mechanism
for mesh.

When the current peer link states allow doze state, the HW is
configured accordingly.
STA wake up from doze state for
1) sending their own beacon and tailing awake window
2) receiving beacons of peers they are in light sleep towards
In these two situations a Mesh Peer Service Period may be
initiated to extend the awake phase to transmit/receive
frames.

Design goal was to implement most PS routines in mac80211 to
keep maintainability high and allow simple driver adaption.
Since mesh PS requires waiting for beacon/multicasts (CAB) per
STA, these routines are re-implemented in mac80211.

The implementation should be capable of managing multiple
concurrent mesh vif, although this has rarely been tested, yet.

(For more info see https://github.com/cozybit/open80211s/wiki
/Mesh-Powersave-Implementation-Notes.)

On some test devices (WNDR3700/3800 with openwrt r35284) I
experience frequent crashes ("Data bus error"). Adding udelay
to ath9k_hw_set_power_awake and ath9k_set_power_network_sleep as
described in https://dev.openwrt.org/ticket/9107 seems to help.
I am unsure if I just stumble over a bug or cause it myself
here.

v2:
mac80211:
- trigger wakeups in HW (Johannes)
- got rid of hrtimer usage (Johannes)
- got rid of pre-TBTT wakeup margin
- got rid of HW sleep/awake status variable in local
- fix deep sleep wakeup schedule
ath9k:
- program HW's TIM timer registers to perform wakeups

Marco Porsch (3):
  mac80211: move mesh sync beacon handler into neighbour_update
  mac80211: mesh power save doze scheduling
  ath9k: mesh powersave support

 drivers/net/wireless/ath/ath9k/ath9k.h  |    1 +
 drivers/net/wireless/ath/ath9k/beacon.c |   21 +-
 drivers/net/wireless/ath/ath9k/hw.c     |   20 +-
 drivers/net/wireless/ath/ath9k/main.c   |   67 ++++++-
 include/net/mac80211.h                  |   29 +++
 net/mac80211/ieee80211_i.h              |   17 +-
 net/mac80211/mesh.c                     |   25 ++-
 net/mac80211/mesh.h                     |   22 ++-
 net/mac80211/mesh_plink.c               |   17 +-
 net/mac80211/mesh_ps.c                  |  316 +++++++++++++++++++++++++++++++
 net/mac80211/mesh_sync.c                |   47 ++---
 net/mac80211/sta_info.c                 |    3 +
 net/mac80211/sta_info.h                 |   10 +
 net/mac80211/tx.c                       |    2 +
 14 files changed, 541 insertions(+), 56 deletions(-)

-- 
1.7.9.5


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

end of thread, other threads:[~2013-02-13 14:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-06 11:48 [RFCv2 0/3] mesh power save - hardware doze Marco Porsch
2013-02-06 11:48 ` [RFCv2 1/3] mac80211: move mesh sync beacon handler into neighbour_update Marco Porsch
2013-02-06 11:48 ` [RFCv2 2/3] mac80211: mesh power save doze scheduling Marco Porsch
2013-02-08  9:20   ` Johannes Berg
2013-02-08 10:09     ` Marco Porsch
2013-02-08 21:57       ` Johannes Berg
2013-02-11 12:03         ` Marco Porsch
2013-02-13 14:59           ` Johannes Berg
2013-02-06 11:48 ` [RFCv2 3/3] ath9k: mesh powersave support Marco Porsch

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