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)
commit4edd56981c8fbb349b1529a2feaf772636eb1c83
tree03b4f00dd4f73555d4cb2347f078e67a90dfa13d
parent75dbf00b443c1763138486e87f4978ff43506f9e
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