wifi: mac80211: move color collision detection report in a delayed work
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 25 Jan 2023 11:01:02 +0000 (12:01 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 14 Feb 2023 10:53:21 +0000 (11:53 +0100)
commit9288188438d85e22c23cfd6657ee8a801babc83c
treed01dd3bbf448472078443ecb0a2a9ce78db18987
parent015b8cc5e7c4d7bb671f1984d7b7338c310b185b
wifi: mac80211: move color collision detection report in a delayed work

Move color collision report in a dedicated delayed work and do not run
it in interrupt context in order to rate-limit the number of events
reported to userspace. Moreover grab wdev mutex in
ieee80211_color_collision_detection_work routine since it is required
by cfg80211_obss_color_collision_notify().

Tested-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Fixes: 5f9404abdf2a ("mac80211: add support for BSS color change")
Link: https://lore.kernel.org/r/3f6cf60c892ad40c1cca4a55d62b1224ef1c6ce9.1674644379.git.lorenzo@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/link.c