From 1a4121882e6d8eb4e81633138d739a5fe7028d54 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 27 Dec 2008 22:13:43 +0000 Subject: [PATCH] fix TMSI length in Mobile Identity IE of LOCATION UPDATE ACCEPT --- src/gsm_04_08.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gsm_04_08.c b/src/gsm_04_08.c index 6a797b73d..c45e754f2 100644 --- a/src/gsm_04_08.c +++ b/src/gsm_04_08.c @@ -102,7 +102,7 @@ static void generate_lai(struct gsm48_loc_area_id *lai48, u_int16_t mcc, static void generate_mid_from_tmsi(u_int8_t *buf, u_int32_t tmsi) { buf[0] = GSM48_IE_MOBILE_ID; - buf[1] = MID_TMSI_LEN; + buf[1] = TMSI_LEN; buf[2] = 0xf0 | GSM_MI_TYPE_TMSI; *((u_int32_t *) &buf[3]) = htonl(tmsi); }