projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6489854
)
iwlagn: clear STATUS_HCMD_ACTIVE bit if fail enqueue
author
Wey-Yi Guy
<wey-yi.w.guy@intel.com>
Sat, 7 May 2011 00:06:43 +0000
(17:06 -0700)
committer
Wey-Yi Guy
<wey-yi.w.guy@intel.com>
Fri, 13 May 2011 19:02:40 +0000
(12:02 -0700)
If fail to enqueue host command, clear the STATUS_hcmD_ACTIVE bit
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-hcmd.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/iwl-hcmd.c
b/drivers/net/wireless/iwlwifi/iwl-hcmd.c
index 1ff1f31250c3cff1761ca9689cf26f1efa695fdc..76f9966231405bf50a97e89ece9381300e30c4d1 100644
(file)
--- 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;