path: root/include/osmocom
diff options
authorMax <msuraev@sysmocom.de>2018-02-15 11:42:11 +0100
committerMax <msuraev@sysmocom.de>2018-02-15 11:44:33 +0100
commitebf149234e1a4966bd74a4200eff21892cceac86 (patch)
tree2418ab5a7cbaf0dd13bd7fa19f0e8c39173d07aa /include/osmocom
parentd55d7d4fc7a7b66b5c45b431ce86a9786e095333 (diff)
Add generic Mobile Identity encoder
Add generic function which allows caller to set Mobile Identity explicitly. This allows to use IMEI or IMEISV for example. Make gsm48_generate_mid_from_imsi() into wrapper around new function. Change-Id: Id79be7abfff75ecd0d248bbeed93e605abeec9b3
Diffstat (limited to 'include/osmocom')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm48.h b/include/osmocom/gsm/gsm48.h
index 69431de2..9ec54639 100644
--- a/include/osmocom/gsm/gsm48.h
+++ b/include/osmocom/gsm/gsm48.h
@@ -31,6 +31,7 @@ void gsm48_generate_lai(struct gsm48_loc_area_id *lai48, uint16_t mcc,
uint16_t mnc, uint16_t lac);
int gsm48_generate_mid_from_tmsi(uint8_t *buf, uint32_t tmsi);
int gsm48_generate_mid_from_imsi(uint8_t *buf, const char *imsi);
+uint8_t gsm48_generate_mid(uint8_t *buf, const char *id, uint8_t mi_type);
/* Convert Mobile Identity ( to string */
int gsm48_mi_to_string(char *string, const int str_len,