aboutsummaryrefslogtreecommitdiffstats
path: root/dbparse.py
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2009-03-09 15:25:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-03-09 15:25:26 -0400
commitab808171f16f920eab2be54a1c816c684fd8ada9 (patch)
tree2e58b0e7d9e790c2c11dbcd5220099eda92c8c8b /dbparse.py
parent52bd119f5208e6bed637c680e3fd572ecd414acc (diff)
downloadexternal_wireless-regdb-ab808171f16f920eab2be54a1c816c684fd8ada9.tar.gz
external_wireless-regdb-ab808171f16f920eab2be54a1c816c684fd8ada9.tar.bz2
external_wireless-regdb-ab808171f16f920eab2be54a1c816c684fd8ada9.zip
Implement simple changes to dbparse.py as suggested by Julian Calaby
<julian.calaby@gmail.com> in email to linux-wireless on 6 March 2009. Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'dbparse.py')
-rwxr-xr-xdbparse.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbparse.py b/dbparse.py
index 15ac73d..2c0d738 100755
--- a/dbparse.py
+++ b/dbparse.py
@@ -143,9 +143,9 @@ class DBParser(object):
if end <= 0:
self._syntax_error("Invalid end freq (%d)" % end)
if start > end:
- self._syntax_error("Inverted freq range it seems (%d - %d)" % (start, end))
- if end - start <= 0:
- self._syntax_error("Invalid bandwidth (%d)" % bw)
+ 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))