]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: regulatory: handle 5 and 10 MHz channels properly
authorMatthias May <matthias.may@neratec.com>
Fri, 17 Jul 2015 13:28:39 +0000 (15:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Aug 2015 15:48:46 +0000 (17:48 +0200)
commitad91d211eba74af972df90a7c2d4ae2dc25fd858
tree03b4f00dd4f73555d4cb2347f078e67a90dfa13d
parent61cf05ddc38b3be68903b4c4499a4179f53217d7
cfg80211: regulatory: handle 5 and 10 MHz channels properly

The original assumption of 20MHz wide channels hasn't been true since
the addition of support for 5 and 10 MHz channels.
Change the code to no longer disable all channels that don't fit into
the 20MHz grid, but instead set the appropriate flags to disable
operation on specific bandwidths.

Signed-off-by: Matthias May <matthias.may@neratec.com>
[reword commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c