]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: use wiphy DFS domain if it is self-managed
authorSriram R <srirrama@codeaurora.org>
Wed, 25 Aug 2021 23:38:50 +0000 (05:08 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 26 Aug 2021 09:04:55 +0000 (11:04 +0200)
commitd403813dba66ea3d517513a0bfb83d7f8fcf9443
tree93b77f2e04774ae16db91148f7565f1b5c4a3d55
parent8f2e324b880494da934a42e60e93cb6fcbef8814
cfg80211: use wiphy DFS domain if it is self-managed

Currently during CAC start or other radar events, the DFS
domain is fetched from cfg based on global DFS domain,
even if the wiphy regdomain disagrees.

But this could be different in case of self managed wiphy's
in case the self managed driver updates its database or supports
regions which has DFS domain set to UNSET in cfg80211 local
regdomain.

So for explicitly self-managed wiphys, just use their DFS
domain.

Signed-off-by: Sriram R <srirrama@codeaurora.org>
Link: https://lore.kernel.org/r/1629934730-16388-1-git-send-email-srirrama@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c