]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
iwlwifi: mvm: disconnect if CSA time event fails scheduling
authorJohannes Berg <johannes.berg@intel.com>
Tue, 10 Mar 2015 09:47:57 +0000 (10:47 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 12 Mar 2015 07:05:49 +0000 (09:05 +0200)
commit060b4460c47143440e77e6721f68ef756674d207
tree62633540e814ce1f7fe244ca51c93922e12d5132
parenta3a0a5992e47869232cffcb02b7d32fe5204ac7c
iwlwifi: mvm: disconnect if CSA time event fails scheduling

If this situation ever happens, the mac80211 state machine gets
confused because it never clears csa_active. There was a separate
bug that lead to this happening with a working connection, but it
isn't very robust to try to keep the connection up in this case.

When removing the time event the CSA essentially procedure stops,
so the safest thing to do is to disconnect in this case.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/time-event.c