[PATCH] layer23: initialize l2h/l3h pointers

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Igor Almeida igor.contato at gmail.com
Thu Aug 21 03:30:22 UTC 2014


Signed-off-by: Igor Almeida <igor.contato at gmail.com>
---
 src/host/layer23/src/common/l1ctl.c | 1 +
 1 file changed, 1 insertion(+)

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);
-- 
2.0.1


--------------070704030600070907020805--




More information about the baseband-devel mailing list