iwlwifi: mvm: remove session protection to allow channel switch
authorAvraham Stern <avraham.stern@intel.com>
Wed, 2 Aug 2017 09:13:20 +0000 (12:13 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 18 Aug 2017 13:10:43 +0000 (16:10 +0300)
commit3edfb5f44b942f04b4fbbddb24d8866bbfb5d1a4
tree068ccc69059ec811ec1297e60e3339d80352167a
parentf9cd3e0871b54e70d3ecfa89b76b2e9a7ac172af
iwlwifi: mvm: remove session protection to allow channel switch

If a time event is already scheduled when trying to schedule one for
channel switch, the code assumes the channel switch is already
scheduled and no further action is required.
However, it is possible that the scheduled time event is actually
for session protection (e.g. when the first beacon after association
contains the CSA IE). In this case the channel switch will not be
scheduled which will finally lead to disconnection.

Fix this by removing the old time event and schduling a new one for
the channel switch.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c