aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-07-08 02:58:52 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2020-07-08 03:33:13 +0200
commit19ec374e7e5cae6284e5f56dfd62dd5844eed963 (patch)
tree314564a081630323a5e6eef25e983997c34e8e87
parent6589f7c3a8dfdaaf66dda3afa6bbb1118ec825f9 (diff)
SI2quater: allow storing 48 EARFCNsHEADmaster
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
-rw-r--r--include/osmocom/bsc/gsm_data.h5
1 files changed, 4 insertions, 1 deletions
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