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

Commit dd5c940b authored by Wey-Yi Guy's avatar Wey-Yi Guy
Browse files

iwlagn: clear STATUS_HCMD_ACTIVE bit if fail enqueue



If fail to enqueue host command, clear the STATUS_hcmD_ACTIVE bit

Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
parent 6489854b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -188,6 +188,7 @@ int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
	cmd_idx = iwl_enqueue_hcmd(priv, cmd);
	if (cmd_idx < 0) {
		ret = cmd_idx;
		clear_bit(STATUS_HCMD_ACTIVE, &priv->status);
		IWL_ERR(priv, "Error sending %s: enqueue_hcmd failed: %d\n",
			  get_cmd_string(cmd->id), ret);
		return ret;