diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-05-19 02:29:05 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2021-05-31 05:20:03 +0000 |
commit | e262919892ab58fe122ae203d745bd2b6a45626e (patch) | |
tree | 95a5d556d942ddaf9d9cf83615156968c5dd1d68 /tests | |
parent | 6f5b1b167596d3075f3616643b8f4ed6293e2dbc (diff) |
add fields to reflect nr of lchans in ts struct
So far the number of usable lchans is determined on-the-fly by the
physical channel config. With VAMOS, this becomes more complex, namely
determining whether the BTS is vamos capable.
Instead of calling a function to determine the number of lchans for
every use, rather place the number of valid lchans in int members of the
timeslot struct, and initialize those during timeslot setup.
Actual use of these new fields will follow in a subsequent patch, which
introduces the ts_for_n_lchans() macro to replace current lchan
iteration macros.
Related: SYS#5315 OS#4940
Change-Id: I08027d79db71a23e874b729c4e6173b0f269ee4f
Diffstat (limited to 'tests')
-rw-r--r-- | tests/handover/handover_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index 0859a0436..006e7910c 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -271,7 +271,7 @@ static struct gsm_bts *_create_bts(int num_trx, const char * const *ts_args, int switch (trx->ts[i].pchan_on_init) { case GSM_PCHAN_TCH_F_TCH_H_PDCH: case GSM_PCHAN_TCH_F_PDCH: - trx->ts[i].pchan_is = GSM_PCHAN_PDCH; + ts_set_pchan_is(&trx->ts[i], GSM_PCHAN_PDCH); break; default: break; @@ -392,10 +392,10 @@ struct gsm_lchan *lchan_act(struct gsm_lchan *lchan, int full_rate, const char * lchan->mgw_endpoint_ci_bts = (void*)1; if (lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_TCH_H_PDCH) - lchan->ts->pchan_is = full_rate ? GSM_PCHAN_TCH_F : GSM_PCHAN_TCH_H; + ts_set_pchan_is(lchan->ts, full_rate ? GSM_PCHAN_TCH_F : GSM_PCHAN_TCH_H); if (lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_PDCH) { OSMO_ASSERT(full_rate); - lchan->ts->pchan_is = GSM_PCHAN_TCH_F; + ts_set_pchan_is(lchan->ts, GSM_PCHAN_TCH_F); } LOG_LCHAN(lchan, LOGL_DEBUG, "activated by handover_test.c\n"); @@ -731,7 +731,7 @@ int __wrap_abis_rsl_sendmsg(struct msgb *msg) break; /* else fall thru */ case GSM_PCHAN_TCH_F: - lchan->ts->pchan_is = GSM_PCHAN_PDCH; + ts_set_pchan_is(lchan->ts, GSM_PCHAN_PDCH); break; default: break; |