summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-05-09 22:08:28 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-05-09 22:08:42 +0700
commit1f07f3e34a5683ec297eb886ee445e050181dbce (patch)
tree4a17b3b42459bcb434ff7e2aa98cbf671878e859
parent2d94a4b71c27f266b952e8c4a0d2efd70e08c534 (diff)
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
-rw-r--r--src/host/trxcon/l1ctl.c2
1 files changed, 2 insertions, 0 deletions
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);