aboutsummaryrefslogtreecommitdiffstats
path: root/dbparse.py
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-10-23 18:45:59 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-11-27 11:19:49 -0500
commite56cd9618e3e5bf8ff96b799544b85170e34d9c3 (patch)
treec09ce02e55a50acafbba9d97e63425618f0db67e /dbparse.py
parentef296c1b59ce96ef2aa1844fe4b80c87249a795a (diff)
downloadexternal_wireless-regdb-e56cd9618e3e5bf8ff96b799544b85170e34d9c3.tar.gz
external_wireless-regdb-e56cd9618e3e5bf8ff96b799544b85170e34d9c3.tar.bz2
external_wireless-regdb-e56cd9618e3e5bf8ff96b799544b85170e34d9c3.zip
wireless-regdb: remove antenna gain
This data is not accurate, cannot be relied upon given that antenna gain is very specific to the device being manufactured, and we never used it. Just kill it to simplify the database. Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'dbparse.py')
-rwxr-xr-xdbparse.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/dbparse.py b/dbparse.py
index 29eb9d6..ac7234b 100755
--- a/dbparse.py
+++ b/dbparse.py
@@ -205,13 +205,10 @@ class DBParser(object):
def _parse_power_def(self, pname, line, dupwarn=True):
try:
- (max_ant_gain,
- max_eirp) = line.split(',')
- if max_ant_gain == 'N/A':
- max_ant_gain = '0'
+ max_eirp = line
if max_eirp == 'N/A':
max_eirp = '0'
- max_ant_gain = float(max_ant_gain)
+ max_ant_gain = float(0)
def conv_pwr(pwr):
if pwr.endswith('mW'):
pwr = float(pwr[:-2])