diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-07-22 17:07:27 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-07-23 17:21:40 +0200 |
commit | e6372cff1bb044faf992976f6e1096a14a8f0295 (patch) | |
tree | 3559cbaf3175362ca25e4cf1758883959962d300 /src/osmo-bts-trx/main.c | |
parent | aa54224e563bcde01bcd1dfc21c59552b421a815 (diff) |
bts-trx: Introduce VTY command osmotrx trxd-max-version
This command allows setting a maximum TRXD format version to negotiate
with TRX. osmo-bts-trx will hence end up using that version if supported
by TRX, or a lower one otherwise (or fail if TRX doesn't support any of
them).
Since now the maximum version can be 0, avoid going through SETFORMAT
negotiation in that case, since 0 is the default version. This way we
keep backward compatibility with TRX implementations that exit upon
receival of unknown commands (such as SC5 current one).
The VTY command is located in the "phy" node instead of the "phy
instance" node because instances of same phy are expected to use same
host with same implementation, so TRXD version to use should be the same
for both.
Related: OS#4006
Change-Id: I5eb1fdc002f9d7f4acf475356d8fc998dc8f6326
Diffstat (limited to 'src/osmo-bts-trx/main.c')
-rw-r--r-- | src/osmo-bts-trx/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/main.c b/src/osmo-bts-trx/main.c index 9529190e..b1fa2079 100644 --- a/src/osmo-bts-trx/main.c +++ b/src/osmo-bts-trx/main.c @@ -134,6 +134,8 @@ void bts_model_phy_link_set_defaults(struct phy_link *plink) plink->u.osmotrx.trx_ta_loop = true; plink->u.osmotrx.trx_ms_power_loop = false; plink->u.osmotrx.trx_target_rssi = -10; + /* attempt use newest TRXD version by default: */ + plink->u.osmotrx.trxd_hdr_ver_max = TRX_DATA_FORMAT_VER; } void bts_model_phy_instance_set_defaults(struct phy_instance *pinst) |