]> git.baikalelectronics.ru Git - 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)
commite509da8e50785e5d98e3b7f83371768b55fb4756
treec5fb2bc33741fbb432283ea3b613842367ed8bf1
parent621017dbac22fba45777acd3c86a359651e39569
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