mirror of https://gitee.com/openkylin/linux.git
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))
|
if (test_bit(STATUS_EXIT_PENDING, &priv->status))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* dont send host command if rf-kill is on */
|
||||||
|
if (!iwl_is_ready_rf(priv))
|
||||||
|
return;
|
||||||
|
|
||||||
iwl_send_statistics_request(priv, CMD_ASYNC);
|
iwl_send_statistics_request(priv, CMD_ASYNC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue