aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-08-10 00:26:50 +0200
committerHarald Welte <laforge@netfilter.org>2009-08-10 00:26:50 +0200
commitb400dd8f646a69f7fe0013065fa9b4711f60a45e (patch)
tree148fbb06186b2cb00a9fbe9c2db95a79664c00e7
parentb7e8116bfa76016fd4e89b7d17bf2ea5e833870c (diff)
We're using NECI=0, but the channel reauest reasons we're seeing from MS's are wrong
So we don't know what's the problem. Using the NECI=1 tables makes us allocate SDCCH for MO SMS, which is good.
-rw-r--r--openbsc/src/gsm_04_08.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 967e4ce58..64405ec34 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 = 0 in the BTS SI4 */
+ /* FIXME: determine if we set NECI = 1 in the BTS SI4 */
- for (i = 0; i < ARRAY_SIZE(chreq_type_neci0); i++) {
- const struct chreq *chr = &chreq_type_neci0[i];
+ for (i = 0; i < ARRAY_SIZE(chreq_type_neci1); i++) {
+ const struct chreq *chr = &chreq_type_neci1[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 = 0 in the BTS SI4 */
+ /* FIXME: determine if we set NECI = 1 in the BTS SI4 */
- for (i = 0; i < ARRAY_SIZE(chreq_type_neci0); i++) {
- const struct chreq *chr = &chreq_type_neci0[i];
+ for (i = 0; i < ARRAY_SIZE(chreq_type_neci1); i++) {
+ const struct chreq *chr = &chreq_type_neci1[i];
if ((ra & chr->mask) == chr->val)
return reason_by_chreq[chr->type];
}