diff options
author | Max <msuraev@sysmocom.de> | 2016-03-21 15:39:02 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-03-21 17:20:11 +0100 |
commit | 06968beab90806cba94c8b331276e4dc209c152b (patch) | |
tree | 44fe28fd13b7c6fc3c646bdd8ec2ff821a00bd20 /src | |
parent | ae5a737c18aebfdc2e1cb66787b070a11eb20772 (diff) |
octphy: fix for multiple trx with more than 1 dsp
Explicitly store and use "center" arfcn used by each dsp (1 dsp
corresponds to 1 phy link).
Diffstat (limited to 'src')
-rw-r--r-- | src/osmo-bts-octphy/l1_oml.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/osmo-bts-octphy/l1_oml.c b/src/osmo-bts-octphy/l1_oml.c index bdf39bfe..14181dc4 100644 --- a/src/osmo-bts-octphy/l1_oml.c +++ b/src/osmo-bts-octphy/l1_oml.c @@ -1304,7 +1304,14 @@ int l1if_trx_open(struct gsm_bts_trx *trx) oc->TrxId.byTrxId = pinst->u.octphy.trx_id; oc->Config.ulBand = osmocom_to_octphy_band(trx->bts->band, trx->arfcn); oc->Config.usArfcn = trx->arfcn; - oc->Config.usCentreArfcn = trx->bts->c0->arfcn; + + if (pinst->u.octphy.trx_id) + oc->Config.usCentreArfcn = plink->u.octphy.center_arfcn; + else { + oc->Config.usCentreArfcn = trx->arfcn; + plink->u.octphy.center_arfcn = trx->arfcn; + } + oc->Config.usTsc = trx->bts->bsic & 0x7; oc->Config.usBcchArfcn = trx->bts->c0->arfcn; oc->RfConfig.ulRxGainDb = plink->u.octphy.rx_gain_db; |