wifi: mac80211: mlme: re-parse with correct mode
authorJohannes Berg <johannes.berg@intel.com>
Thu, 18 Apr 2024 08:52:20 +0000 (10:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 19 Apr 2024 08:02:10 +0000 (10:02 +0200)
commit645acc6f55918feacc4572dd80acbb152b2208d9
treedeeed1d64b00ebb752ef1fb8c5524e558ca451d8
parent89884459a0b9e6ecd62a1ddfdb7708b34ee33649
wifi: mac80211: mlme: re-parse with correct mode

When doing re-parsing in ieee80211_determine_chan_mode(),
the conn->mode is changed, and the whole point of doing
the parsing again was to parse as the downgraded mode.
However, that didn't actually work, because the setting
was copied before and never changed again. Fix that.

Fixes: 310c8387c638 ("wifi: mac80211: clean up connection process")
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240418105220.5e0d1fcb5622.Ib0673e0bc90033fd6d387b6a5f107c040eb907cf@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c