Commit 3104ba15 authored by Eytan Lifshitz's avatar Eytan Lifshitz Committed by Johannes Berg

iwlwifi: dvm: fix delayed enter to CT-kill bug

Theoretically, the card may not enter CTKILL:
In case the timer that iwl_prepare_ct_kill_task is setting,
will expire before tt->state revert to its previous state.
Signed-off-by: default avatarEytan Lifshitz <eytan.lifshitz@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent ec8b6885
...@@ -471,8 +471,8 @@ static void iwl_advance_tt_handler(struct iwl_priv *priv, s32 temp, bool force) ...@@ -471,8 +471,8 @@ static void iwl_advance_tt_handler(struct iwl_priv *priv, s32 temp, bool force)
set_bit(STATUS_CT_KILL, &priv->status); set_bit(STATUS_CT_KILL, &priv->status);
iwl_perform_ct_kill_task(priv, true); iwl_perform_ct_kill_task(priv, true);
} else { } else {
iwl_prepare_ct_kill_task(priv);
tt->state = old_state; tt->state = old_state;
iwl_prepare_ct_kill_task(priv);
} }
} else if (old_state == IWL_TI_CT_KILL && } else if (old_state == IWL_TI_CT_KILL &&
tt->state != IWL_TI_CT_KILL) { tt->state != IWL_TI_CT_KILL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment