mac80211: wait for beacon before enabling powersave
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 26 Jan 2010 13:19:52 +0000 (14:19 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 26 Jan 2010 16:53:21 +0000 (11:53 -0500)
commit56007a028c51cbf800a6c969d6f6431d23443b99
tree8bc0280467824ed3b5f95810444b1f8e1ebc2750
parentc21dbf9214bce129f92e1af05552553ff0e318ed
mac80211: wait for beacon before enabling powersave

Because DTIM information is required for powersave
but is only conveyed in beacons, wait for a beacon
before enabling powersave, and change the way the
information is conveyed to the driver accordingly.

mwl8k doesn't currently seem to implement PS but
requires the DTIM period in a different way; after
talking to Lennert we agreed to just have mwl8k do
the parsing itself in the finalize_join work.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-power.c
drivers/net/wireless/mwl8k.c
drivers/net/wireless/wl12xx/wl1251.h
drivers/net/wireless/wl12xx/wl1251_main.c
include/net/mac80211.h
net/mac80211/mlme.c
net/mac80211/scan.c