mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 06:46:43 +07: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:
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user