OSDN Git Service

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)
commite04135c07755d001b5cde61048c69a7cc84bb94b
treed2d97099d0bfce525957d2c8bf4c0bb03e2d8a27
parent26de4c8b027efb3dc734120eebd39cf23ae7411c
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