diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-06-28 12:19:13 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2021-07-06 07:16:15 +0000 |
commit | cc75145131c19a680049ada58462092f952149ab (patch) | |
tree | fdd892ebe33d51cf01a4eb519c974a9f765bb5a6 /tests/handover | |
parent | cf65c9b297206261e110fa859f83d434e884d238 (diff) |
Rename osmo dyn ts enums to contain SDCCH8
They will gain support to be activated as SDCCH/8 soon too.
Related: OS#5309
Depends: libosmocore.git I56dcfe4d17899630b17f80145c3ced72f1e91e68
Change-Id: Id5b89fe589a52ff88486435ac43809edb4b80f98
Diffstat (limited to 'tests/handover')
-rw-r--r-- | tests/handover/handover_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index bcf9019c9..2ff9f31df 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -187,7 +187,7 @@ enum gsm_phys_chan_config pchan_from_str(const char *str) { enum gsm_phys_chan_config pchan; if (!strcmp(str, "dyn")) - return GSM_PCHAN_TCH_F_TCH_H_PDCH; + return GSM_PCHAN_OSMO_DYN; if (!strcmp(str, "c+s4")) return GSM_PCHAN_CCCH_SDCCH4; if (!strcmp(str, "-")) @@ -270,7 +270,7 @@ static struct gsm_bts *_create_bts(int num_trx, const char * const *ts_args, int /* Unused dyn TS start out as used for PDCH */ switch (trx->ts[i].pchan_on_init) { - case GSM_PCHAN_TCH_F_TCH_H_PDCH: + case GSM_PCHAN_OSMO_DYN: case GSM_PCHAN_TCH_F_PDCH: ts_set_pchan_is(&trx->ts[i], GSM_PCHAN_PDCH); break; @@ -392,7 +392,7 @@ struct gsm_lchan *lchan_act(struct gsm_lchan *lchan, int full_rate, const char * /* Fake osmo_mgcpc_ep_ci to indicate that the lchan is used for voice */ lchan->mgw_endpoint_ci_bts = (void*)1; - if (lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_TCH_H_PDCH) + if (lchan->ts->pchan_on_init == GSM_PCHAN_OSMO_DYN) 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); @@ -722,7 +722,7 @@ int __wrap_abis_rsl_sendmsg(struct msgb *msg) /* send dyn TS back to PDCH if unused */ switch (lchan->ts->pchan_on_init) { - case GSM_PCHAN_TCH_F_TCH_H_PDCH: + case GSM_PCHAN_OSMO_DYN: case GSM_PCHAN_TCH_F_PDCH: switch (lchan->ts->pchan_is) { case GSM_PCHAN_TCH_H: @@ -884,8 +884,8 @@ DEFUN(create_bts, create_bts_cmd, "Create N TRX in the new BTS\n" "TRX count\n" "Timeslot config\n" - "Timeslot types for 8 * trx-count, each being one of CCCH+SDCCH4|SDCCH8|TCH/F|TCH/H|TCH/F_TCH/H_PDCH|...;" - " shorthands: cs+4 = CCCH+SDCCH4; dyn = TCH/F_TCH/H_PDCH\n") + "Timeslot types for 8 * trx-count, each being one of CCCH+SDCCH4|SDCCH8|TCH/F|TCH/H|TCH/F_TCH/H_SDCCH8_PDCH|...;" + " shorthands: cs+4 = CCCH+SDCCH4; dyn = TCH/F_TCH/H_SDCCH8_PDCH\n") { int num_trx = atoi(argv[0]); VTY_ECHO(); |