From: Wey-Yi Guy Date: Sat, 7 May 2011 00:06:43 +0000 (-0700) Subject: iwlagn: clear STATUS_HCMD_ACTIVE bit if fail enqueue X-Git-Tag: v3.0-rc2~7^2~16^2~60^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd5c940b42c1734e501d9494f7b99566b50a5a87;p=platform%2Fkernel%2Flinux-stable.git iwlagn: clear STATUS_HCMD_ACTIVE bit if fail enqueue If fail to enqueue host command, clear the STATUS_hcmD_ACTIVE bit Signed-off-by: Wey-Yi Guy --- diff --git a/drivers/net/wireless/iwlwifi/iwl-hcmd.c b/drivers/net/wireless/iwlwifi/iwl-hcmd.c index 1ff1f31..76f9966 100644 --- a/drivers/net/wireless/iwlwifi/iwl-hcmd.c +++ b/drivers/net/wireless/iwlwifi/iwl-hcmd.c @@ -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;