diff options
author | Mohamed Abbas <mohamed.abbas@intel.com> | 2008-10-29 17:05:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:17:38 -0500 |
commit | 61780ee313846b29bfb06dfcb2f3bdf0b7ba3f66 (patch) | |
tree | ff868772c8b228bbe0a14b5cb2baeaf3310c2c6f | |
parent | eb48dcaf57d4e9b6521aeb593fe95a36db6c2109 (diff) |
iwlwifi: do not call statistics from rfkill
Signed-off-by: Mohamed Abbas <mohamed.abbas@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index f3e4cf5a82e0..8264d3742d08 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1153,6 +1153,10 @@ static void iwl_bg_statistics_periodic(unsigned long data) | |||
1153 | if (test_bit(STATUS_EXIT_PENDING, &priv->status)) | 1153 | if (test_bit(STATUS_EXIT_PENDING, &priv->status)) |
1154 | return; | 1154 | return; |
1155 | 1155 | ||
1156 | /* dont send host command if rf-kill is on */ | ||
1157 | if (!iwl_is_ready_rf(priv)) | ||
1158 | return; | ||
1159 | |||
1156 | iwl_send_statistics_request(priv, CMD_ASYNC); | 1160 | iwl_send_statistics_request(priv, CMD_ASYNC); |
1157 | } | 1161 | } |
1158 | 1162 | ||