mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-03 11:34:17 -05:00
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>
This commit is contained in:
committed by
John W. Linville
parent
eb48dcaf57
commit
61780ee313
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user