mirror of
https://github.com/svpcom/wfb-ng.git
synced 2025-02-15 21:43:49 -04:00
Add txpower setting
This commit is contained in:
parent
60caf1c5a1
commit
f4497690b5
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user