From b237d6063e31bc5915cf14976d6a8bb74f3c38ab Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 26 Apr 2018 11:46:22 +0200 Subject: [PATCH] Align header buffer to 8-byte boundary as expected by S1AP pack/unpack functions --- lib/include/srslte/asn1/liblte_common.h | 2 +- lib/include/srslte/common/common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/srslte/asn1/liblte_common.h b/lib/include/srslte/asn1/liblte_common.h index 053f64d70..3b7eccf6f 100644 --- a/lib/include/srslte/asn1/liblte_common.h +++ b/lib/include/srslte/asn1/liblte_common.h @@ -55,7 +55,7 @@ // Caution these values must match SRSLTE_ ones in common.h #define LIBLTE_MAX_MSG_SIZE_BITS 102048 #define LIBLTE_MAX_MSG_SIZE_BYTES 12756 -#define LIBLTE_MSG_HEADER_OFFSET 1024 +#define LIBLTE_MSG_HEADER_OFFSET 1020 /******************************************************************************* TYPEDEFS diff --git a/lib/include/srslte/common/common.h b/lib/include/srslte/common/common.h index 754b7423d..6477a4efd 100644 --- a/lib/include/srslte/common/common.h +++ b/lib/include/srslte/common/common.h @@ -61,7 +61,7 @@ // 3GPP 36.306 Table 4.1.1 #define SRSLTE_MAX_BUFFER_SIZE_BITS 102048 #define SRSLTE_MAX_BUFFER_SIZE_BYTES 12756 -#define SRSLTE_BUFFER_HEADER_OFFSET 1024 +#define SRSLTE_BUFFER_HEADER_OFFSET 1020 #define SRSLTE_BUFFER_POOL_LOG_ENABLED