diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-04-27 21:43:33 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-05-10 18:08:50 -0400 |
commit | 3d38f1731e3a8217e228fde0a4bfece865bc7901 (patch) | |
tree | fc28d8f48cca13154db5cedc83e4d5f27f0a57b6 /drivers | |
parent | f401241310f4260505b1c462807c83aac5e5bbc8 (diff) |
iwlwifi: checking for all the possible failure cases
Multiple error condition require fw/rf reset, driver should check all
the possible errors as long as the error checking functions for the
devices are available.
Reported-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index 1dff14a67b2c..d661fce000c2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
@@ -412,9 +412,11 @@ static void iwl_recover_from_statistics(struct iwl_priv *priv, | |||
412 | */ | 412 | */ |
413 | IWL_ERR(priv, "low ack count detected, " | 413 | IWL_ERR(priv, "low ack count detected, " |
414 | "restart firmware\n"); | 414 | "restart firmware\n"); |
415 | iwl_force_reset(priv, IWL_FW_RESET); | 415 | if (!iwl_force_reset(priv, IWL_FW_RESET)) |
416 | return; | ||
416 | } | 417 | } |
417 | } else if (priv->cfg->ops->lib->check_plcp_health) { | 418 | } |
419 | if (priv->cfg->ops->lib->check_plcp_health) { | ||
418 | if (!priv->cfg->ops->lib->check_plcp_health( | 420 | if (!priv->cfg->ops->lib->check_plcp_health( |
419 | priv, pkt)) { | 421 | priv, pkt)) { |
420 | /* | 422 | /* |