mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
mac80211: clear local->ps_data on disassoc
local->ps_data wasn't cleared on disassociation, which (in some corner cases) caused reconnections to enter psm before association completed. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
64bd0821a3
commit
a331400bf0
@ -1095,6 +1095,7 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
|
||||
local->hw.conf.flags &= ~IEEE80211_CONF_PS;
|
||||
config_changed |= IEEE80211_CONF_CHANGE_PS;
|
||||
}
|
||||
local->ps_sdata = NULL;
|
||||
|
||||
ieee80211_hw_config(local, config_changed);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user