Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d38f173 authored by Wey-Yi Guy's avatar Wey-Yi Guy Committed by Reinette Chatre
Browse files

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: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
parent f4012413
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -412,9 +412,11 @@ static void iwl_recover_from_statistics(struct iwl_priv *priv,
				 */
				IWL_ERR(priv, "low ack count detected, "
					"restart firmware\n");
				iwl_force_reset(priv, IWL_FW_RESET);
				if (!iwl_force_reset(priv, IWL_FW_RESET))
					return;
			}
		}
		} else if (priv->cfg->ops->lib->check_plcp_health) {
		if (priv->cfg->ops->lib->check_plcp_health) {
			if (!priv->cfg->ops->lib->check_plcp_health(
			    priv, pkt)) {
				/*