summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorMohamed Abbas <mohamed.abbas@intel.com>2008-10-30 00:05:49 +0300
committerJohn W. Linville <linville@tuxdriver.com>2008-11-10 23:17:38 +0300
commit61780ee313846b29bfb06dfcb2f3bdf0b7ba3f66 (patch)
treeff868772c8b228bbe0a14b5cb2baeaf3310c2c6f /drivers/net/wireless/iwlwifi
parenteb48dcaf57d4e9b6521aeb593fe95a36db6c2109 (diff)
downloadlinux-61780ee313846b29bfb06dfcb2f3bdf0b7ba3f66.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c4
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)
if (test_bit(STATUS_EXIT_PENDING, &priv->status))
return;
+ /* dont send host command if rf-kill is on */
+ if (!iwl_is_ready_rf(priv))
+ return;
+
iwl_send_statistics_request(priv, CMD_ASYNC);
}