diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-05-20 18:33:53 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2021-05-25 11:36:35 +0000 |
commit | 518ada9414755ab859e0139289090a1ef7ba9be3 (patch) | |
tree | c779001fda7f82c2f048319cb619ea898b115cf9 /tests | |
parent | 97193ced54da7435e87d692285d77abbec9865ca (diff) |
bts: Clean up TS selection in sign_link_up
Change-Id: I0c92dfd05bf2ae40887980ef10b7e4c679213b6a
Diffstat (limited to 'tests')
-rw-r--r-- | tests/handover/handover_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index 6af8fac4..9c9b0207 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -58,6 +58,7 @@ int main(int argc, char **argv) { void *tall_bts_ctx; struct e1inp_line *line; + struct e1inp_ts *sign_ts; struct gsm_lchan *lchan; struct osmo_phsap_prim nl1sap; struct msgb *msg; @@ -90,9 +91,9 @@ int main(int argc, char **argv) line = e1inp_line_create(0, "ipa"); OSMO_ASSERT(line); - - e1inp_ts_config_sign(&line->ts[E1INP_SIGN_RSL-1], line); - trx->rsl_link = e1inp_sign_link_create(&line->ts[E1INP_SIGN_RSL-1], E1INP_SIGN_RSL, NULL, 0, 0); + sign_ts = e1inp_line_ipa_rsl_ts(line, 0); + e1inp_ts_config_sign(sign_ts, line); + trx->rsl_link = e1inp_sign_link_create(sign_ts, E1INP_SIGN_RSL, NULL, 0, 0); OSMO_ASSERT(trx->rsl_link); trx->rsl_link->trx = trx; |