diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-09 22:08:28 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-09 22:08:42 +0700 |
commit | 1f07f3e34a5683ec297eb886ee445e050181dbce (patch) | |
tree | 4a17b3b42459bcb434ff7e2aa98cbf671878e859 /src/host/trxcon | |
parent | 2d94a4b71c27f266b952e8c4a0d2efd70e08c534 (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
Diffstat (limited to 'src/host/trxcon')
-rw-r--r-- | src/host/trxcon/l1ctl.c | 2 |
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); |