aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/paging.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-08-20 08:41:24 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-08-20 13:59:14 +0200
commit5d0e56f722ce77ed29226c85e93dd09c9184f97e (patch)
tree51a3767c861603d1e317053ec5687cced1c86e21 /openbsc/src/paging.c
parentd1862d7cf98b984407d8533ac68b0ae85cfbf9c7 (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/paging.c')
-rw-r--r--openbsc/src/paging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index c79356e50..fd0611a14 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -99,7 +99,7 @@ static void page_ms(struct gsm_paging_request *request)
page_group = calculate_group(request->bts, request->subscr);
tmsi = strtoul(request->subscr->tmsi, NULL, 10);
- mi_len = generate_mid_from_tmsi(mi, tmsi);
+ mi_len = gsm48_generate_mid_from_tmsi(mi, tmsi);
rsl_paging_cmd(request->bts, page_group, mi_len, mi,
request->chan_type);
}