diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-05-06 17:06:44 -0700 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-05-13 12:02:49 -0700 |
commit | 3083d03c215a2d1642dd12ede7ad61e24601b583 (patch) | |
tree | 4f6fb3ac63c5ed33d6c2fa02205fc90999c1813f /drivers/net/wireless/iwlwifi/iwl-tx.c | |
parent | dd5c940b42c1734e501d9494f7b99566b50a5a87 (diff) | |
download | op-kernel-dev-3083d03c215a2d1642dd12ede7ad61e24601b583.zip op-kernel-dev-3083d03c215a2d1642dd12ede7ad61e24601b583.tar.gz |
iwlagn: alwasy send RXON with disassociate falge before associate
Before send the RXON command with associated flag set, always do disassociate
first to make sure uCode is in the correct state.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 2f6b38c..54a935f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c @@ -582,6 +582,11 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) int trace_idx; #endif + if (test_bit(STATUS_FW_ERROR, &priv->status)) { + IWL_WARN(priv, "fw recovery, no hcmd send\n"); + return -EIO; + } + copy_size = sizeof(out_cmd->hdr); cmd_size = sizeof(out_cmd->hdr); |