Skip to content

Commit

Permalink
iwlwifi: mvm: clear TE data if CSA time event fails to start
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luciano Coelho authored and Emmanuel Grumbach committed Nov 24, 2014
1 parent c6e0a3e commit 0c6505c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/iwlwifi/mvm/time-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0c6505c

Please sign in to comment.