diff options
author | Zhu Yi <yi.zhu@intel.com> | 2008-06-11 21:47:17 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:09 -0400 |
commit | 808e72a088d164cf0030f593d9a5fc23306fb6b6 (patch) | |
tree | f7ecfb26b4baed326adb4f31eb4566949a1df0a9 | |
parent | 95483b69c8c0d49e43c97ecb5eb3cbec48a02d61 (diff) |
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>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 72279e07fe32..d0084bcb1eca 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -2875,7 +2875,8 @@ static void iwl3945_radio_kill_sw(struct iwl3945_priv *priv, int disable_radio) | |||
2875 | return; | 2875 | return; |
2876 | } | 2876 | } |
2877 | 2877 | ||
2878 | queue_work(priv->workqueue, &priv->restart); | 2878 | if (priv->is_open) |
2879 | queue_work(priv->workqueue, &priv->restart); | ||
2879 | return; | 2880 | return; |
2880 | } | 2881 | } |
2881 | 2882 | ||
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) | |||
970 | return 0; | 970 | return 0; |
971 | } | 971 | } |
972 | 972 | ||
973 | queue_work(priv->workqueue, &priv->restart); | 973 | if (priv->is_open) |
974 | queue_work(priv->workqueue, &priv->restart); | ||
974 | return 1; | 975 | return 1; |
975 | } | 976 | } |
976 | 977 | ||