summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
diff options
context:
space:
mode:
authorZhu Yi <yi.zhu@intel.com>2008-06-12 03:47:17 +0200
committerJohn W. Linville <linville@tuxdriver.com>2008-06-14 18:18:09 +0200
commit808e72a088d164cf0030f593d9a5fc23306fb6b6 (patch)
treef7ecfb26b4baed326adb4f31eb4566949a1df0a9 /drivers/net/wireless/iwlwifi/iwl4965-base.c
parentiwlwifi: remove dead code iwl4965_calc_db_from_ratio (diff)
downloadlinux-808e72a088d164cf0030f593d9a5fc23306fb6b6.tar.xz
linux-808e72a088d164cf0030f593d9a5fc23306fb6b6.zip
iwlwifi: fix software rf_kill problem when interface is down
The patch fixes the problem that software rf_kill messes up the card status when it is disabled if the interface is down. Signed-off-by: Zhu Yi <yi.zhu@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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 8f1ab23e9d61..5aec7d5fb9cc 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -970,7 +970,8 @@ int iwl4965_radio_kill_sw(struct iwl_priv *priv, int disable_radio)
return 0;
}
- queue_work(priv->workqueue, &priv->restart);
+ if (priv->is_open)
+ queue_work(priv->workqueue, &priv->restart);
return 1;
}