From: Johannes Berg Date: Wed, 22 Apr 2009 16:44:37 +0000 (+0200) Subject: mac80211: calculate maximum sleep interval X-Git-Tag: v2.6.31-rc1~330^2~568^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04fe20372e70685d9f15966216cdffd3795fe590;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed