[BUGFIX] 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.

type=bugfix
fixes=I3e61f4cfe9da89008e1854160093c76a1e69dc2a
ticket=jira:WIFI-393939

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Change-Id: Ib0673e0bc90033fd6d387b6a5f107c040eb907cf
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/104111
automatic-review: iil_jenkins iil_jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
tested: iil_jenkins iil_jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/104590
x-iwlwifi-stack-dev: 83b7c73d7762e4b63730c6687c69114886c007e0
2 files changed