diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-05-06 20:06:43 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-05-13 15:02:40 -0400 |
commit | dd5c940b42c1734e501d9494f7b99566b50a5a87 (patch) | |
tree | 842e3bda37868c17831cbe554898b82672921d4a /drivers/net/wireless/iwlwifi | |
parent | 6489854b9cbc2faa6709532e61c3ea221cf8583b (diff) |
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 <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-hcmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-hcmd.c b/drivers/net/wireless/iwlwifi/iwl-hcmd.c index 1ff1f31250c3..76f996623140 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) | |||
188 | cmd_idx = iwl_enqueue_hcmd(priv, cmd); | 188 | cmd_idx = iwl_enqueue_hcmd(priv, cmd); |
189 | if (cmd_idx < 0) { | 189 | if (cmd_idx < 0) { |
190 | ret = cmd_idx; | 190 | ret = cmd_idx; |
191 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); | ||
191 | IWL_ERR(priv, "Error sending %s: enqueue_hcmd failed: %d\n", | 192 | IWL_ERR(priv, "Error sending %s: enqueue_hcmd failed: %d\n", |
192 | get_cmd_string(cmd->id), ret); | 193 | get_cmd_string(cmd->id), ret); |
193 | return ret; | 194 | return ret; |