Skip to content

Commit

Permalink
iwlwifi: do not call statistics from rfkill
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mohamed Abbas authored and John W. Linville committed Nov 10, 2008
1 parent eb48dca commit 61780ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/wireless/iwlwifi/iwl-agn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 61780ee

Please sign in to comment.