wifi: mac80211: initialize SMPS mode correctly
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Jan 2024 18:54:05 +0000 (19:54 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 2 Feb 2024 12:10:14 +0000 (13:10 +0100)
commit86b2dac224f963be92634a878888222e1e938f48
tree52d2f82c2f7f7617a62ec54d1bf34ecab690df44
parent733c498a80853acbafe284a40468b91f4d41f0b4
wifi: mac80211: initialize SMPS mode correctly

The SMPS mode is currently re-initialized too late, since
ieee80211_prep_channel() can be called again after we've
already done ieee80211_setup_assoc_link(), in case there's
some override of the channel configuration. Fix this.

Link: https://msgid.link/20240129195405.d6d74508be18.I0a7303b1ce4d8e5436011951ab624372a445c069@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c