summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Almeida <igor.contato@gmail.com>2014-08-21 00:30:22 -0300
committerSylvain Munaut <tnt@246tNt.com>2014-09-06 23:47:15 +0200
commite6372a2c247d9882fe915fd34252d9fbd5b78adf (patch)
tree0840354c66eea2919490113a15f4130aaa35877e
parentd7b69212f8c7a230102a1313d74fdaa99b86dc9b (diff)
layer23: initialize l2h/l3h pointers in rx_l1_rach_conf
Signed-off-by: Igor Almeida <igor.contato@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--src/host/layer23/src/common/l1ctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/layer23/src/common/l1ctl.c b/src/host/layer23/src/common/l1ctl.c
index 91bab89..c75872e 100644
--- a/src/host/layer23/src/common/l1ctl.c
+++ b/src/host/layer23/src/common/l1ctl.c
@@ -148,6 +148,7 @@ static int rx_l1_rach_conf(struct osmocom_ms *ms, struct msgb *msg)
}
dl = (struct l1ctl_info_dl *) msg->l1h;
+ msg->l2h = msg->l3h = dl->payload;
osmo_prim_init(&pp.oph, SAP_GSM_PH, PRIM_PH_RACH,
PRIM_OP_CONFIRM, msg);