]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: move only to an enabled channel
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Thu, 10 Feb 2022 16:22:33 +0000 (18:22 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 18 Feb 2022 08:40:55 +0000 (10:40 +0200)
commit201dbd9564c719b5f73613285e3a6813e36c5b83
treed2d97099d0bfce525957d2c8bf4c0bb03e2d8a27
parentc964fa91cee6d11c91270ba04b13b3cb50d12d09
iwlwifi: mvm: move only to an enabled channel

During disassociation we're decreasing the phy's ref count.
If the ref count becomes 0, we're configuring the phy ctxt
to the default channel (the lowest channel which the device
can operate on). Currently we're not checking whether the
the default channel is enabled or not. Fix it by configuring
the phy ctxt to the lowest channel which is enabled.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20220210181930.03f281b6a6bc.I5b63d43ec41996d599e6f37ec3f32e878b3e405e@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c