Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61780ee3 authored by Mohamed Abbas's avatar Mohamed Abbas Committed by John W. Linville
Browse files

iwlwifi: do not call statistics from rfkill

parent eb48dcaf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
}