]> Gentwo Git Trees - linux/.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)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 28 Oct 2025 13:56:42 +0000 (14:56 +0100)
commitfbc1cc6973099f45e4c30b86f12b4435c7cb7d24
treec68cdd88e45776cba4509719dd1e3829a98aff69
parent3f654d53dff565095d83a84e3b6187526dadf4c8
wifi: mac80211: use wiphy_hrtimer_work for csa.switch_work

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>
net/mac80211/chan.c
net/mac80211/ieee80211_i.h
net/mac80211/link.c
net/mac80211/mlme.c