]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: use wiphy_hrtimer_work for csa.switch_work
authorBenjamin Berg <benjamin.berg@intel.com>
Tue, 28 Oct 2025 10:58:40 +0000 (12:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:37:45 +0000 (15:37 -0500)
commitd03fea3a60096f053478df28d83aa91dfaf1375e
treefc26e68e95a6f3215dc55a553b81454367d527f7
parente81bd3b1843d9a70bcdf570cb3c4613a6a14d603
wifi: mac80211: use wiphy_hrtimer_work for csa.switch_work

commit fbc1cc6973099f45e4c30b86f12b4435c7cb7d24 upstream.

The work item may be scheduled relatively far in the future. As the
event happens at a specific point in time, the normal timer accuracy is
not sufficient in that case.

Switch to use wiphy_hrtimer_work so that the accuracy is sufficient. To
make this work, use the same clock to store the timestamp.

CC: stable@vger.kernel.org
Fixes: ec3252bff7b6 ("wifi: mac80211: use wiphy work for channel switch")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20251028125710.68258c7e4ac4.I4ff2b2cdffbbf858bf5f08baccc7a88c4f9efe6f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/chan.c
net/mac80211/ieee80211_i.h
net/mac80211/link.c
net/mac80211/mlme.c