]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cfg80211: Fix radar event during another phy CAC
authorOrr Mazor <orr.mazor@tandemg.com>
Sun, 22 Dec 2019 14:55:31 +0000 (14:55 +0000)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 6 Mar 2020 07:13:20 +0000 (02:13 -0500)
commit927ffcc830261c8a162bb6b18046f267a27c60b8
treef7a91833508d6a13a7dbbb3793bcd271c61e52d4
parentd2739db8146c5ba75277c4b635b4082d148214c5
cfg80211: Fix radar event during another phy CAC

BugLink: https://bugs.launchpad.net/bugs/1864904
[ Upstream commit 26ec17a1dc5ecdd8d91aba63ead6f8b5ad5dea0d ]

In case a radar event of CAC_FINISHED or RADAR_DETECTED
happens during another phy is during CAC we might need
to cancel that CAC.

If we got a radar in a channel that another phy is now
doing CAC on then the CAC should be canceled there.

If, for example, 2 phys doing CAC on the same channels,
or on comptable channels, once on of them will finish his
CAC the other might need to cancel his CAC, since it is no
longer relevant.

To fix that the commit adds an callback and implement it in
mac80211 to end CAC.
This commit also adds a call to said callback if after a radar
event we see the CAC is no longer relevant

Signed-off-by: Orr Mazor <Orr.Mazor@tandemg.com>
Reviewed-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Link: https://lore.kernel.org/r/20191222145449.15792-1-Orr.Mazor@tandemg.com
[slightly reformat/reword commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/net/cfg80211.h
net/mac80211/cfg.c
net/wireless/rdev-ops.h
net/wireless/reg.c
net/wireless/trace.h