Add txpower setting

This commit is contained in:
Vasily Evseenko 2019-06-07 15:14:09 +03:00
parent 60caf1c5a1
commit f4497690b5
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)