aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-16 14:10:45 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-16 15:42:40 +0800
commit77008464be36bd7e2d953a4b0d63f96f72774b58 (patch)
tree42d2c273efcf11d7336f497b1431639ec3faec64 /openbsc/src
parentbddd152049c26a92dc8eb22e18a528eb88df4ed0 (diff)
bsc_api: Move BSC API between MSC and RSL code...
The lowlevel BSC paging API is a simple wrapper around the RSL command. The BTS will automatically repeat these messages but if we end up with two MSC inputs we will need to count these messages somewhere...
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/bsc_api.c6
-rw-r--r--openbsc/src/paging.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/openbsc/src/bsc_api.c b/openbsc/src/bsc_api.c
index 25b8b66c1..28fc324a3 100644
--- a/openbsc/src/bsc_api.c
+++ b/openbsc/src/bsc_api.c
@@ -59,6 +59,12 @@ int gsm0808_submit_dtap(struct gsm_subscriber_connection *conn,
}
}
+int gsm0808_page(struct gsm_bts *bts, unsigned int page_group, unsigned int mi_len,
+ uint8_t *mi, int chan_type)
+{
+ return rsl_paging_cmd(bts, page_group, mi_len, mi, chan_type);
+}
+
/* dequeue messages to layer 4 */
int bsc_upqueue(struct gsm_network *net)
{
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index 12ed90341..ca3767864 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -92,8 +92,7 @@ static void page_ms(struct gsm_paging_request *request)
mi_len = gsm48_generate_mid_from_tmsi(mi, request->subscr->tmsi);
page_group = calculate_group(request->bts, request->subscr);
- rsl_paging_cmd(request->bts, page_group, mi_len, mi,
- request->chan_type);
+ gsm0808_page(request->bts, page_group, mi_len, mi, request->chan_type);
}
/*