]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: regulatory: introduce NL80211_RRF_AUTO_BW rule flag
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Thu, 20 Feb 2014 12:52:16 +0000 (13:52 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 21 Feb 2014 08:27:28 +0000 (09:27 +0100)
commite71951a2b1eed006eb146ce4978cce8a4068ae47
tree7b71486a29271d772919d7e1d71f384b519b46cd
parent63d6cd849dee774db16c97d34448d8faea155fd2
cfg80211: regulatory: introduce NL80211_RRF_AUTO_BW rule flag

Introduce NL80211_RRF_AUTO_BW rule flag. If this flag set
maximum available bandwidth should be calculated base on
contiguous rules and wider channels will be allowed to cross
multiple contiguous/overlapping frequency ranges.

In case of old kernels maximum bandwidth from regulatory
rule will be used, while there is no NL80211_RRF_AUTO_BW flag.

This fixes the previous commit 21e1ed5ef7d12bdb18740ac629cc
("cfg80211: regulatory introduce maximum bandwidth calculation")
which was found to be a problem for userspace API compatibility.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
[edit commit log, use sizeof()]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h
net/wireless/genregdb.awk
net/wireless/nl80211.c
net/wireless/reg.c