[BUGFIX] wifi: mac80211: defer link switch work in reconfig

If a link switch work was queued, and then a restart happened, the
worker might be executed before the reconfig, and obviously it will fail
(the HW might not respond to updates etc.)
So, don't perform the switch if we are in reconfig, instead - do it
at the end of the reconfig.

type=bugfix
ticket=jira:WIFI-397899
ticket=jira:WIFI-396976
fixes=unknown

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Change-Id: I19add3f2152dcfd55a759de97b1d09265c1cde98
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/100211
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>
Tested-by: iil_jenkins iil_jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
(cherry picked from commit 6d04bae311e3588edd20e27daa00e7ac655ce579)
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/101524
x-iwlwifi-stack-dev: 9e52a05c3ed3c5b661f15c5148440a36bf018897
3 files changed