From 19ec374e7e5cae6284e5f56dfd62dd5844eed963 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 8 Jul 2020 02:58:52 +0200 Subject: SI2quater: allow storing 48 EARFCNs Up to 16 SI2quater are multiplexed; each fits 3 EARFCNS, so the practical maximum is 48 (of course depending on how many bits are used by other SI2quater elements). Change-Id: Iabeed10053ee5899b4def3509aedd25abb2410a9 --- include/osmocom/bsc/gsm_data.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h index ce18d1b7e..0f5fc546e 100644 --- a/include/osmocom/bsc/gsm_data.h +++ b/include/osmocom/bsc/gsm_data.h @@ -393,7 +393,10 @@ struct om2k_mo { #define A38_XOR_MAX_KEY_LEN 16 #define A38_COMP128_KEY_LEN 16 #define RSL_ENC_ALG_A5(x) (x+1) -#define MAX_EARFCN_LIST 32 +/* Up to 16 SI2quater are multiplexed; each fits 3 EARFCNS, so the practical maximum is 3*16. + * The real maximum that fits in a total of 16 SI2quater rest octets also depends on the bits left by other SI2quater + * rest octets elements, so to really fit 48 EARFCNs most other SI2quater elements need to be omitted. */ +#define MAX_EARFCN_LIST (3*16) /* is the data link established? who established it? */ #define LCHAN_SAPI_UNUSED 0 -- cgit v1.2.3