summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamed Abbas <mohamed.abbas@intel.com>2008-10-29 14:05:49 -0700
committerJohn W. Linville <linville@tuxdriver.com>2008-11-10 15:17:38 -0500
commit61780ee313846b29bfb06dfcb2f3bdf0b7ba3f66 (patch)
treeff868772c8b228bbe0a14b5cb2baeaf3310c2c6f
parenteb48dcaf57d4e9b6521aeb593fe95a36db6c2109 (diff)
downloadblackbird-op-linux-61780ee313846b29bfb06dfcb2f3bdf0b7ba3f66.tar.gz
blackbird-op-linux-61780ee313846b29bfb06dfcb2f3bdf0b7ba3f66.zip
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.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);
}
OpenPOWER on IntegriCloud