Skip to content

Commit

Permalink
iwl3945: set STATUS_READY before commit_rxon
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Jan 28, 2011
1 parent f844a70 commit 5a5289d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/iwlwifi/iwl3945-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2535,13 +2535,14 @@ static void iwl3945_alive_start(struct iwl_priv *priv)
/* Configure Bluetooth device coexistence support */
priv->cfg->ops->hcmd->send_bt_config(priv);

set_bit(STATUS_READY, &priv->status);

/* Configure the adapter for unassociated operation */
iwl3945_commit_rxon(priv, ctx);

iwl3945_reg_txpower_periodic(priv);

IWL_DEBUG_INFO(priv, "ALIVE processing complete.\n");
set_bit(STATUS_READY, &priv->status);
wake_up_interruptible(&priv->wait_command_queue);

return;
Expand Down

0 comments on commit 5a5289d

Please sign in to comment.