aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/gsm_data.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-02-21 00:38:05 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-03-11 00:45:49 +0100
commit02d1fe87f0fdf4d9e08cde9f727f00e17343c20c (patch)
treecfe3f9d74d2b24735fcee66cd2ef4b465c7a2fe3 /include/osmo-bts/gsm_data.h
parent29cd7a84089b4a29748a0c9723f539bc6005ad99 (diff)
implement support for 3-digit MNC with leading zeros
Record the mnc_3_digits flag from SI and pass on via the PCU interface. Instead of changing to e.g. osmo_plmn_id, add the flag separately, and instead of bool use a uint8_t, to not raise any struct packing issues and clarify the flag's size beyond any doubt. Bump the PCU interface version to 9. This is one part of the three identical pcuif_proto.h patches: - I49cd762c3c9d7ee6a82451bdf3ffa2a060767947 (osmo-bts) - I787fed84a7b613158a5618dd5cffafe4e4927234 (osmo-pcu) - I78f30aef7aa224b2e9db54c3a844d8f520b3aee0 (osmo-bsc) Depends: Id2240f7f518494c9df6c8bda52c0d5092f90f221 (libosmocore) Change-Id: I49cd762c3c9d7ee6a82451bdf3ffa2a060767947
Diffstat (limited to 'include/osmo-bts/gsm_data.h')
-rw-r--r--include/osmo-bts/gsm_data.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index 10c9d049..16521044 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -4,6 +4,7 @@
#include <osmocom/core/timer.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/gsm/lapdm.h>
+#include <osmocom/gsm/gsm23003.h>
#include <osmo-bts/paging.h>
#include <osmo-bts/tx_power.h>
@@ -29,7 +30,7 @@ struct smscb_msg;
struct gsm_network {
struct llist_head bts_list;
unsigned int num_bts;
- uint16_t mcc, mnc;
+ struct osmo_plmn_id plmn;
struct pcu_sock_state *pcu_state;
};