iwlwifi: mvm: clear TE data if CSA time event fails to start
authorLuciano Coelho <luciano.coelho@intel.com>
Mon, 10 Nov 2014 09:10:20 +0000 (11:10 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 24 Nov 2014 06:30:35 +0000 (08:30 +0200)
If setting the CSA time event fails, we must clear the TE data,
otherwise we'll try to remove it when, for instance, a disconnection
occurs, causing a SYSASSERT.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
drivers/net/wireless/iwlwifi/mvm/time-event.c

index ff631cc5e5e73d1036c51b25d094331fd28ff3ed..54fafbf9a711fb9bacb3149fcb9f8ce1826c4b90 100644 (file)
@@ -198,6 +198,7 @@ iwl_mvm_te_handle_notify_csa(struct iwl_mvm *mvm,
 {
        if (!le32_to_cpu(notif->status)) {
                IWL_DEBUG_TE(mvm, "CSA time event failed to start\n");
+               iwl_mvm_te_clear_data(mvm, te_data);
                return;
        }