Skip to content

Commit

Permalink
Don't set txpower if common.wifi_txpower is None svpcom#40
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom committed Jun 23, 2019
1 parent f449769 commit 316a6b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion telemetry/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 316a6b0

Please sign in to comment.