]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
cfg80211: add helper fn for adjacent rule channels
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Mon, 3 Aug 2020 14:43:53 +0000 (16:43 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 27 Aug 2020 09:27:17 +0000 (11:27 +0200)
commit12adee3c467dd3dff9f0cd98a33f26dad61187cc
treec5fb2bc33741fbb432283ea3b613842367ed8bf1
parent7c9ff7e232ec45da35d40f33d17b708e36016b58
cfg80211: add helper fn for adjacent rule channels

Some usable channels are located in the union of adjacent
regulatory rules, for example channel 144 in Germany.

Enable them, by also checking if a channel spans two adjacent
regulatory rules/frequency ranges.

All flags involved are disabling things, therefore we can build
the maximum by or-ing them together. Furthermore, take the maximum
of DFS CAC time values and the minimum of allowed power of both
adjacent channels in order to comply with both regulatory rules at
the same time.

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
Link: https://lore.kernel.org/r/20200803144353.305538-2-markus.theil@tu-ilmenau.de
[remove unrelated comment changes]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c