From e58ca7c1818d0024f1051b8ba02e46938313e0e8 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 10 Aug 2009 02:14:46 +0200 Subject: [PATCH] revert commit b400dd8f646a69f7fe0013065fa9b4711f60a45e regarding NECI=0 As it turns out, we start to allocate SDCCH for voice calls. Since we don't yet implement switching from SDCCH to TCH during call setup, this leads to various problems. --- openbsc/src/gsm_04_08.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c index 64405ec34..967e4ce58 100644 --- a/openbsc/src/gsm_04_08.c +++ b/openbsc/src/gsm_04_08.c @@ -3755,10 +3755,10 @@ static const enum gsm_chreq_reason_t reason_by_chreq[] = { enum gsm_chan_t get_ctype_by_chreq(struct gsm_bts *bts, u_int8_t ra) { int i; - /* FIXME: determine if we set NECI = 1 in the BTS SI4 */ + /* FIXME: determine if we set NECI = 0 in the BTS SI4 */ - for (i = 0; i < ARRAY_SIZE(chreq_type_neci1); i++) { - const struct chreq *chr = &chreq_type_neci1[i]; + for (i = 0; i < ARRAY_SIZE(chreq_type_neci0); i++) { + const struct chreq *chr = &chreq_type_neci0[i]; if ((ra & chr->mask) == chr->val) return ctype_by_chreq[chr->type]; } @@ -3769,10 +3769,10 @@ enum gsm_chan_t get_ctype_by_chreq(struct gsm_bts *bts, u_int8_t ra) enum gsm_chreq_reason_t get_reason_by_chreq(struct gsm_bts *bts, u_int8_t ra) { int i; - /* FIXME: determine if we set NECI = 1 in the BTS SI4 */ + /* FIXME: determine if we set NECI = 0 in the BTS SI4 */ - for (i = 0; i < ARRAY_SIZE(chreq_type_neci1); i++) { - const struct chreq *chr = &chreq_type_neci1[i]; + for (i = 0; i < ARRAY_SIZE(chreq_type_neci0); i++) { + const struct chreq *chr = &chreq_type_neci0[i]; if ((ra & chr->mask) == chr->val) return reason_by_chreq[chr->type]; }