aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-12-04 20:14:59 +0100
committerJohn W. Linville <linville@tuxdriver.com>2013-01-11 14:31:05 -0500
commitaf726449e73286e1375e7a72336045d9d0ce84f8 (patch)
tree1cc0d91aacef95ddf50d1989ce49e9b8a028401e
parent1e7bf666e34e30e13238879ee76b58449be2f9fd (diff)
downloadwireless-regdb-af726449e73286e1375e7a72336045d9d0ce84f8.tar.gz
dbparse: remove usable bandwidth check
The kernel uses the bandwidth this way: any frequency rule that is required for any of the 20 MHz subchannels of a given channel must allow the total bandwidth. Therefore, this check is wrong -- a frequency rule may need to be specified with higher bandwidth than it has to allow to form e.g. HT40 out of subchannels. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rwxr-xr-xdbparse.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/dbparse.py b/dbparse.py
index 893d64e..32cbce9 100755
--- a/dbparse.py
+++ b/dbparse.py
@@ -162,9 +162,6 @@ class DBParser(object):
self._syntax_error("Inverted freq range (%d - %d)" % (start, end))
if start == end:
self._syntax_error("Start and end freqs are equal (%d)" % start)
- if end - start < bw:
- self._syntax_error("Invalid bandwidth: %d width channel "
- "cannot possibly fit between %d - %d" % (bw, start, end))
except ValueError:
self._syntax_error("band must have frequency range")