OSDN Git Service

iwlwifi: mvm: don't disconnect immediately if we don't hear beacons after CSA
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 11 Apr 2021 10:25:38 +0000 (13:25 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 14 Apr 2021 09:07:20 +0000 (12:07 +0300)
commitcc61d3ced2aac08230f20809378c5e3134f6702d
tree82cfe725c2e706e65dea6a317d82fd119f55cd0a
parenta9174578262b86f15cb1882f35e53b1fae0649fd
iwlwifi: mvm: don't disconnect immediately if we don't hear beacons after CSA

When we switch channel, we may miss a few beacons on the
new channel. Don't disconnect if the time event for the
switch ends before we hear the beacons.

Note that this is relevant only for old devices that still
use the TIME_EVENT firmware API for channel switch.

The check that we hear a beacon before the time event
ends was meant to be used for the association time event
and not for the channel switch time event.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210411132130.3d710091a0bd.I37a161ffdfb099a10080fbdc3b70a4deb76952e2@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c