mac80211: fix powersave bug and clean up ieee80211_rx_bss_info
authorAlexander Bondar <alexander.bondar@intel.com>
Mon, 3 Jun 2013 14:29:33 +0000 (17:29 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 5 Jun 2013 06:52:47 +0000 (08:52 +0200)
commit482a9c74fa17c5d584995c19e1a36eaf710d1193
treeb75dca5fc3f09a9e682cafe083a48ba21bf8ddd7
parent9b881963c1c81f965f89a3e89b1aa5557f67ee30
mac80211: fix powersave bug and clean up ieee80211_rx_bss_info

ieee80211_rx_bss_info() deals with dtim_period setting and PS update
when associated. Move all these to another locations cleaning this
function. Also, the current implementation is buggy because when it
calls ieee80211_recalc_ps() bss_conf->dtim_period is notset properly
yet and thus nothing will happen.

Signed-off-by: Alexander Bondar <alexander.bondar@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c