aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_data_shared.h
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-05-09 15:19:15 +0200
committerMax <msuraev@sysmocom.de>2017-05-10 07:49:43 +0000
commit7b62d54b52457ecae649ead12e67369b3e09c235 (patch)
tree936c0f2694e3ea2653f9bb28b72cc493a7ce343a /openbsc/include/openbsc/gsm_data_shared.h
parent2b6c5407b6889325beb1a1aa0fd5f33718756de2 (diff)
Use define for limit on number of BTS features
Diffstat (limited to 'openbsc/include/openbsc/gsm_data_shared.h')
-rw-r--r--openbsc/include/openbsc/gsm_data_shared.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h
index 0586d8a3c..5c96a62dc 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -66,6 +66,8 @@ enum gsm_chreq_reason_t {
#define MAX_VERSION_LENGTH 64
+#define MAX_BTS_FEATURES 128
+
enum gsm_hooks {
GSM_HOOK_NM_SWLOAD,
GSM_HOOK_RR_PAGING,
@@ -533,7 +535,7 @@ struct gsm_bts_model {
struct tlv_definition nm_att_tlvdef;
struct bitvec features;
- uint8_t _features_data[128/8];
+ uint8_t _features_data[MAX_BTS_FEATURES/8];
};
enum gsm_bts_features {