mac80211: fix powersave
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 30 Jul 2009 19:43:55 +0000 (21:43 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:44:18 +0000 (16:44 -0400)
commit056508dcb6890586745aa937e779f00fde05531b
tree978a3f9281c4a5a5e70a463e43f4e428ba2b7f32
parentb7cfc5b35eed2fe8a5c45793e6e52ef0edddc824
mac80211: fix powersave

Some of the recent MLME rework I did broke powersave
because the ps_sdata isn't assigned at the right time,
and the work item wasn't removed from the list before
calling ieee80211_recalc_ps(). To be more specific,
this broke the case where you'd enabled PS before
associating, either automatically or with iwconfig.

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