summaryrefslogtreecommitdiffstats
path: root/src/host/layer23
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-07-13 19:09:00 +0200
committerAndreas.Eversberg2010-07-13 19:09:00 +0200
commitbd2bcacf811cb8d49418ac4f668c82dc2219f200 (patch)
treee40cea27b5b738a7a271db423a47aa6c147a840a /src/host/layer23
parent[layer23] Fixed MM crash bug (diff)
downloadosmocom-bd2bcacf811cb8d49418ac4f668c82dc2219f200.tar.gz
osmocom-bd2bcacf811cb8d49418ac4f668c82dc2219f200.tar.xz
osmocom-bd2bcacf811cb8d49418ac4f668c82dc2219f200.zip
[layer23] Fixed maleformed PAG.RESP message
Diffstat (limited to 'src/host/layer23')
-rw-r--r--src/host/layer23/src/gsm48_rr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/layer23/src/gsm48_rr.c b/src/host/layer23/src/gsm48_rr.c
index 92bd2ec..bd918cb 100644
--- a/src/host/layer23/src/gsm48_rr.c
+++ b/src/host/layer23/src/gsm48_rr.c
@@ -1146,7 +1146,6 @@ int gsm48_rr_tx_rand_acc(struct osmocom_ms *ms, struct msgb *msg)
#warning HACK: fn51 and fn_off
ncch->data[2] = (s->ccch_conf == 1) ? 27 : 50;
ncch->data[3] = 1 + ((random() % s->tx_integer) + slots) / 51;
-printf("%d\n", ncch->data[3]);
ncch->data[4] = RSL_IE_ACCESS_DELAY;
ncch->data[5] = set->alter_delay; /* (-)=earlier (+)=later */
ncch->data[6] = RSL_IE_MS_POWER;
@@ -3029,6 +3028,8 @@ static int gsm48_rr_dl_est(struct osmocom_ms *ms)
if (!nmsg)
return -ENOMEM;
gh = (struct gsm48_hdr *) msgb_put(nmsg, sizeof(*gh));
+ gh->proto_discr = GSM48_PDISC_RR;
+ gh->msg_type = GSM48_MT_RR_PAG_RESP;
pr = (struct gsm48_pag_rsp *) msgb_put(nmsg, sizeof(*pr));
/* key sequence */
pr->key_seq = subscr->key_seq;