summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorMarkus Theil <markus.theil@tu-ilmenau.de>2020-08-03 16:43:53 +0200
committerJohannes Berg <johannes.berg@intel.com>2020-08-27 11:27:17 +0200
commit12adee3c467dd3dff9f0cd98a33f26dad61187cc (patch)
treec5fb2bc33741fbb432283ea3b613842367ed8bf1 /init
parentcfg80211: add helper fn for single rule channels (diff)
downloadlinux-12adee3c467dd3dff9f0cd98a33f26dad61187cc.tar.xz
linux-12adee3c467dd3dff9f0cd98a33f26dad61187cc.zip
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions