Skip to content

Commit

Permalink
Add txpower setting
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom committed Jun 7, 2019
1 parent 60caf1c commit f449769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion telemetry/conf/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mavlink_agg_timeout = 0.1 # aggragate mavlink packets if less than radio_mtu but
tx_sel_delta = 3 # hysteresis for antenna selection, [dB]
wifi_channel = 165 # radio channel @5825 MHz, range: 5815-5835 MHz, width 20MHz
wifi_region = 'BO' # Set CRDA region

wifi_txpower = 58 # for 8812au

[gs_mavlink]
keypair = 'gs.key' # keypair generated by wfb-keygen
Expand Down
1 change: 1 addition & 0 deletions telemetry/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ 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))
except ExecError as v:
if v.stdout:
log.msg(v.stdout, isError=1)
Expand Down

0 comments on commit f449769

Please sign in to comment.