aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2011-01-28 10:47:45 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-01-28 15:46:24 -0500
commit5a5289dfa5f79168bd477bba2353da90786c83d6 (patch)
tree6af93507cebe1694edc7b8702b76b23389b296d8 /drivers
parentf844a709a7d8f8be61a571afc31dfaca9e779621 (diff)
iwl3945: set STATUS_READY before commit_rxon
Similar change as we already do for agn, need to avoid "Error setting Tx power (-5)" message when loading module. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 9c986f272c2d..55837d607534 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -2535,13 +2535,14 @@ static void iwl3945_alive_start(struct iwl_priv *priv)
2535 /* Configure Bluetooth device coexistence support */ 2535 /* Configure Bluetooth device coexistence support */
2536 priv->cfg->ops->hcmd->send_bt_config(priv); 2536 priv->cfg->ops->hcmd->send_bt_config(priv);
2537 2537
2538 set_bit(STATUS_READY, &priv->status);
2539
2538 /* Configure the adapter for unassociated operation */ 2540 /* Configure the adapter for unassociated operation */
2539 iwl3945_commit_rxon(priv, ctx); 2541 iwl3945_commit_rxon(priv, ctx);
2540 2542
2541 iwl3945_reg_txpower_periodic(priv); 2543 iwl3945_reg_txpower_periodic(priv);
2542 2544
2543 IWL_DEBUG_INFO(priv, "ALIVE processing complete.\n"); 2545 IWL_DEBUG_INFO(priv, "ALIVE processing complete.\n");
2544 set_bit(STATUS_READY, &priv->status);
2545 wake_up_interruptible(&priv->wait_command_queue); 2546 wake_up_interruptible(&priv->wait_command_queue);
2546 2547
2547 return; 2548 return;