diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-02-20 15:14:14 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2018-03-01 13:00:56 +0000 |
commit | ccfc387fb906f24e163e1a3a141a37a9e27acee2 (patch) | |
tree | 31699d93e2a467e1432f43bfb290740f81033eef /include/osmocom/gsm/gsm48.h | |
parent | 8d827803585fd2491ec7d16a07abef999c2d42df (diff) |
introduce GSM_MCC_MNC_INVALID
In some cases, we want to mark an unset MCC-MNC. Define uint16-max for this
purpose.
osmo-bsc code is already doing so with a -1 and using int data types, which
will become inconvenient with the new API that handles MCC and MNC as uint16_t.
Change-Id: Ieee7add0bd6d94cf84743a49794bbcd38561b72f
Diffstat (limited to 'include/osmocom/gsm/gsm48.h')
-rw-r--r-- | include/osmocom/gsm/gsm48.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm48.h b/include/osmocom/gsm/gsm48.h index 5f144358..7c66a200 100644 --- a/include/osmocom/gsm/gsm48.h +++ b/include/osmocom/gsm/gsm48.h @@ -12,6 +12,10 @@ /* reserved according to GSM 03.03 ยง 2.4 */ #define GSM_RESERVED_TMSI 0xFFFFFFFF +/* Valid MCC and MNC range from 0 to 999. + * To mark an invalid / unset MNC, this value shall be used. */ +#define GSM_MCC_MNC_INVALID 0xFFFF + /* A parsed GPRS routing area */ struct gprs_ra_id { uint16_t mcc; |