Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a331400b authored by Eliad Peller's avatar Eliad Peller Committed by John W. Linville
Browse files

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: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 64bd0821
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);