]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: calculate maximum sleep interval
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 22 Apr 2009 16:44:37 +0000 (18:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:57:20 +0000 (16:57 -0400)
commit079ea600ee510388b9f659e4335f1c09bffc2296
tree8de1ed35372e2f2bcfd9f36cb89647ce1507922d
parentce07d1faa6e87fa796f8d578b77dcc479d296756
mac80211: calculate maximum sleep interval

The maximum sleep interval, for powersave purposes, is
determined by the DTIM period (it may not be larger)
and the required networking latency (it must be small
enough to fulfil those constraints).

This makes mac80211 calculate the maximum sleep interval
based on those constraints, and pass it to the driver.
Then the driver should instruct the device to sleep at
most that long.

Note that the device is responsible for aligning the
maximum sleep interval between DTIMs, we make sure it's
not longer but it needs to make sure it's between them.

Also, group some powersave documentation together and
make it more explicit that we support managed mode only,
and no IBSS powersaving (yet).

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/mlme.c