[PATCH] dbparse: remove usable bandwidth check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

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 at intel.com>
---
John, this patch needs to be applied before the other one so the new
db.txt will be parsed successfully.

 dbparse.py | 3 ---
 1 file changed, 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")
 
-- 
1.8.0





[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux