From 1f07f3e34a5683ec297eb886ee445e050181dbce Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 9 May 2019 22:08:28 +0700 Subject: trxcon/l1ctl.c: init DL info header in l1ctl_tx_rach_conf() Since we only set both ARFCN and TDMA frame number of the DL info header, other fields remain uninitialized. Let's memset() them. Change-Id: Ib39c333f1724fefa5d8bd8a2315b77a5612f7fa9 --- src/host/trxcon/l1ctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c index 9cd5fe61..e6f8f826 100644 --- a/src/host/trxcon/l1ctl.c +++ b/src/host/trxcon/l1ctl.c @@ -244,6 +244,8 @@ int l1ctl_tx_rach_conf(struct l1ctl_link *l1l, return -ENOMEM; dl = put_dl_info_hdr(msg, NULL); + memset(dl, 0x00, sizeof(*dl)); + dl->band_arfcn = htons(band_arfcn); dl->frame_nr = htonl(fn); -- cgit v1.2.3