aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2020-05-05 20:40:02 +0200
committerSylvain Munaut <tnt@246tNt.com>2020-05-08 14:50:26 +0200
commit540e98f259b45fd55b119d56e2a9f5e912551833 (patch)
treefd284445f5e6c67c1170736423f0f7237fc60b43 /src/osmo-bsc
parent7d10c80a7dffde379a3e3275e3f29bfd81d91a49 (diff)
om2k: Use the "from config" TS config to setup OM objects
During the configuration of the TS object through OML we must use pchan_from_config since it's too early to use anything else. Signed-off-by: Sylvain Munaut <tnt@246tNt.com> Change-Id: Iecdc911a79b66d8f3d746347710ad697cb288174
Diffstat (limited to 'src/osmo-bsc')
-rw-r--r--src/osmo-bsc/abis_om2000.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bsc/abis_om2000.c b/src/osmo-bsc/abis_om2000.c
index 936fd67ff..b99fbc584 100644
--- a/src/osmo-bsc/abis_om2000.c
+++ b/src/osmo-bsc/abis_om2000.c
@@ -1375,7 +1375,7 @@ static uint8_t ts2comb(struct gsm_bts_trx_ts *ts)
* message for it. Rather fail completely right now: */
return 0;
}
- return pchan2comb(ts->pchan_is);
+ return pchan2comb(ts->pchan_from_config);
}
static int put_freq_list(uint8_t *buf, uint16_t arfcn)
@@ -1438,7 +1438,7 @@ int abis_om2k_tx_ts_conf_req(struct gsm_bts_trx_ts *ts)
msgb_tv_put(msg, OM2K_DEI_EXT_RANGE, 0); /* Off */
/* Optional: Interference Rejection Combining */
msgb_tv_put(msg, OM2K_DEI_INTERF_REJ_COMB, 0x00);
- switch (ts->pchan_is) {
+ switch (ts->pchan_from_config) {
case GSM_PCHAN_CCCH:
msgb_tv_put(msg, OM2K_DEI_BA_PA_MFRMS, 0x06);
msgb_tv_put(msg, OM2K_DEI_BS_AG_BKS_RES, 0x01);
@@ -1482,7 +1482,7 @@ int abis_om2k_tx_ts_conf_req(struct gsm_bts_trx_ts *ts)
msgb_tv_fixed_put(msg, OM2K_DEI_ICM_BOUND_PARAMS,
sizeof(icm_bound_params), icm_bound_params);
msgb_tv_put(msg, OM2K_DEI_TTA, 10); /* Timer for Time Alignment */
- if (ts->pchan_is == GSM_PCHAN_TCH_H)
+ if (ts->pchan_from_config == GSM_PCHAN_TCH_H)
msgb_tv_put(msg, OM2K_DEI_ICM_CHAN_RATE, 1); /* TCH/H */
else
msgb_tv_put(msg, OM2K_DEI_ICM_CHAN_RATE, 0); /* TCH/F */