]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: iwlwifi: mld: reschedule check_tpt_wk also not in EMLSR
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Mon, 15 Sep 2025 08:34:24 +0000 (11:34 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Tue, 28 Oct 2025 14:05:17 +0000 (16:05 +0200)
commit5c0251598f29646a19a7232c9437b6faa22ab4c2
tree5cff71ae5afa2079de0899912337938d44b61431
parent9dc6e9dfdf9d9efe5afd2322e450b83a449993db
wifi: iwlwifi: mld: reschedule check_tpt_wk also not in EMLSR

When the throughput count reaches the threshold, EMLSR is no longer
blocked by throughput.
This doesn't mean that EMLSR will be activated immediately, since there
might be other reasons that block EMLSR.

When the throughput blocker is not set, check_tpt_wk should run every 5
seconds and check if the throughput blocker should be set (if the
throughtput counter dropped).
If not, it should reschedule itself.

In the current code, the worker will reschedule itself only if we are in
EMLSR. This is wrong, since we might be in a case where the throughput
blocker is not set but we are not in EMLSR, and then we will never check
again the throughput counters (and block EMLSR if needed).

Fix this by rescheduling the worker also when EMLSR is not active.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250915113137.2a9cf2b2529d.I8284c0da9597e4c963e38ae133384f6f42044499@changeid
drivers/net/wireless/intel/iwlwifi/mld/mlo.c