summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
diff options
context:
space:
mode:
authorRick Farrington <rickdic@hotmail.com>2008-03-18 14:57:49 -0700
committerJohn W. Linville <linville@tuxdriver.com>2008-03-24 19:25:08 -0400
commita9f46786ec5bb291c9b5e6cc6f83ebbd3fceea51 (patch)
treed13d8f045436c368ee97b898595fa04e96244b5a /drivers/net/wireless/iwlwifi/iwl4965-base.c
parentea995abfed7f0726aaa22580aaf10b2cf5d91be5 (diff)
downloadlinux-a9f46786ec5bb291c9b5e6cc6f83ebbd3fceea51.tar.gz
linux-a9f46786ec5bb291c9b5e6cc6f83ebbd3fceea51.tar.bz2
linux-a9f46786ec5bb291c9b5e6cc6f83ebbd3fceea51.zip
iwlwifi: mac start synchronization issue
This patch fixes a synchronization problem on the 4965 and 3945 with the mac start callback routine. The problem is that this function exits BEFORE the 'xxx_alive_start' has completed. This can lead to a problem if a subsequent MAC callback attempts to issue a firmware command. Signed-off-by: Rick Farrington <rickdic@hotmail.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index a23d4798653b..7020822e78d1 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -6628,11 +6628,11 @@ static void iwl4965_alive_start(struct iwl4965_priv *priv)
/* At this point, the NIC is initialized and operational */
priv->notif_missed_beacons = 0;
- set_bit(STATUS_READY, &priv->status);
iwl4965_rf_kill_ct_config(priv);
IWL_DEBUG_INFO("ALIVE processing complete.\n");
+ set_bit(STATUS_READY, &priv->status);
wake_up_interruptible(&priv->wait_command_queue);
if (priv->error_recovering)