From 316a6b0377f7f4107afec90d21eac68a157a34a9 Mon Sep 17 00:00:00 2001 From: Vasily Evseenko Date: Sun, 23 Jun 2019 09:26:20 +0300 Subject: [PATCH] Don't set txpower if common.wifi_txpower is None #40 --- telemetry/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telemetry/server.py b/telemetry/server.py index a63d4984..5d806ded 100644 --- a/telemetry/server.py +++ b/telemetry/server.py @@ -303,7 +303,8 @@ def init_wlans(profile, wlans): yield call_and_check_rc('iw', 'dev', wlan, 'set', 'monitor', 'otherbss') yield call_and_check_rc('ifconfig', wlan, 'up') yield call_and_check_rc('iw', 'dev', wlan, 'set', 'channel', str(settings.common.wifi_channel), ht_mode) - yield call_and_check_rc('iw', 'dev', wlan, 'set', 'txpower', 'fixed', str(settings.common.wifi_txpower)) + if settings.common.wifi_txpower: + yield call_and_check_rc('iw', 'dev', wlan, 'set', 'txpower', 'fixed', str(settings.common.wifi_txpower)) except ExecError as v: if v.stdout: log.msg(v.stdout, isError=1)