diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-08-20 08:41:24 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-08-20 13:59:14 +0200 |
commit | 5d0e56f722ce77ed29226c85e93dd09c9184f97e (patch) | |
tree | 51a3767c861603d1e317053ec5687cced1c86e21 /openbsc/src/gsm_04_08.c | |
parent | d1862d7cf98b984407d8533ac68b0ae85cfbf9c7 (diff) |
[gsm48] Introduce a gsm48_generate_mid_from_imsi method
Prefix generate_mid_from_tmsi with a gsm48_, create a new method
to binary encode the imsi. Add a unit test for parsing and decoding.
The implementation can parse the data it generated and the
last octet seems to be filled with the end mark.
Diffstat (limited to 'openbsc/src/gsm_04_08.c')
-rw-r--r-- | openbsc/src/gsm_04_08.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c index abb6e86bf..eeabc0fce 100644 --- a/openbsc/src/gsm_04_08.c +++ b/openbsc/src/gsm_04_08.c @@ -899,7 +899,7 @@ int gsm0408_loc_upd_acc(struct gsm_lchan *lchan, u_int32_t tmsi) bts->network->network_code, bts->location_area_code); mid = msgb_put(msg, GSM48_MID_TMSI_LEN); - generate_mid_from_tmsi(mid, tmsi); + gsm48_generate_mid_from_tmsi(mid, tmsi); DEBUGP(DMM, "-> LOCATION UPDATE ACCEPT\n"); |