Message ID | 53F56FD6.9070404@gmail.com |
---|---|
State | New |
Headers | show |
On Thu, Aug 21, 2014 at 01:04:38AM -0300, Igor Almeida wrote: Hi! > dl = (struct l1ctl_info_dl *) msg->l1h; > + msg->l2h = msg->l3h = dl->payload; > yes, looks fine. I had msg->l2h = msg->l3h = msg->tail but dl->payload should probably work as well. I will leave it for Sylvain/Andreas to comment. thanks a lot for the patch holger
On Fri, Aug 22, 2014 at 5:50 PM, Holger Hans Peter Freyther <holger@freyther.de> wrote: > On Thu, Aug 21, 2014 at 01:04:38AM -0300, Igor Almeida wrote: > > Hi! > > >> dl = (struct l1ctl_info_dl *) msg->l1h; >> + msg->l2h = msg->l3h = dl->payload; >> > > yes, looks fine. I had msg->l2h = msg->l3h = msg->tail but > dl->payload should probably work as well. I will leave it for > Sylvain/Andreas to comment. > > thanks a lot for the patch I'll give it a shot this week end when I have a osmocom-bb phone handy and merge it. Cheers, Sylvain
>> >>> dl = (struct l1ctl_info_dl *) msg->l1h; >>> + msg->l2h = msg->l3h = dl->payload; >>> >> >> yes, looks fine. I had msg->l2h = msg->l3h = msg->tail but >> dl->payload should probably work as well. I will leave it for >> Sylvain/Andreas to comment. >> >> thanks a lot for the patch > > I'll give it a shot this week end when I have a osmocom-bb phone handy > and merge it. Merged thanks. Sorry, it got delayed, life got in the way that weekend and I was just reminded of it by someone having that issue in IRC ... I think dl->payload makes sense since this is what's used to init it in the other cases (like data_ind). Cheers, Sylvain
From ef2b86acdfc78c3fd2725daea1d70a4904348c48 Mon Sep 17 00:00:00 2001 From: Igor Almeida <igor.contato@gmail.com> Date: Thu, 21 Aug 2014 00:30:22 -0300 Subject: [PATCH] layer23: initialize l2h/l3h pointers Signed-off-by: Igor Almeida <igor.contato@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