diff options
author | Max <msuraev@sysmocom.de> | 2017-03-01 17:47:45 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-03-14 14:17:44 +0000 |
commit | 9dfdf54d30079146627105c7f764e16d486559ba (patch) | |
tree | 5ee9e97533fd7243539dec2de2c5b044218d3fae /tests | |
parent | 6f5e398ccb10c0095061d9adf39f0ebcebd0c876 (diff) |
Check for suitable lchan type when detecting HO
Log error when handover RACH is detected on wrong channel: according to
3GPP TS 44.018 it can only be seen on SACCH and DCCH.
Change-Id: Iacbcc8441d6cfbb8f808948a8baddde1ebca488a
Related: OS#1898
Diffstat (limited to 'tests')
-rw-r--r-- | tests/handover/handover_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index a7a66d06..611c441b 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -103,8 +103,10 @@ int main(int argc, char **argv) /* create two lchans for handover */ lchan = &trx->ts[1].lchan[0]; + lchan->type = GSM_LCHAN_SDCCH; l1sap_chan_act(lchan->ts->trx, 0x09, NULL); lchan = &trx->ts[2].lchan[0]; + lchan->type = GSM_LCHAN_TCH_F; lchan->ho.active = HANDOVER_ENABLED; lchan->ho.ref = 23; l1sap_chan_act(lchan->ts->trx, 0x0a, NULL); |