Change in osmocom-bb[master]: trxcon/l1ctl.c: init DL info header in l1ctl_tx_rach_conf()

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/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu May 9 15:16:52 UTC 2019


Vadim Yanitskiy has submitted this change and it was merged. ( https://gerrit.osmocom.org/13948 )

Change subject: trxcon/l1ctl.c: init DL info header in l1ctl_tx_rach_conf()
......................................................................

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
---
M src/host/trxcon/l1ctl.c
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Vadim Yanitskiy: Looks good to me, approved



diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index 9cd5fe6..e6f8f82 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -244,6 +244,8 @@
 		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);
 

-- 
To view, visit https://gerrit.osmocom.org/13948
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib39c333f1724fefa5d8bd8a2315b77a5612f7fa9
Gerrit-Change-Number: 13948
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190509/da2882d5/attachment.htm>


More information about the gerrit-log mailing list