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...
This commit is contained in:
Holger Hans Peter Freyther 2010-06-16 14:10:45 +08:00
parent bddd152049
commit 77008464be
3 changed files with 9 additions and 2 deletions

View File

@ -22,5 +22,7 @@ struct bsc_api {
int bsc_api_init(struct gsm_network *network, struct bsc_api *api);
int gsm0808_submit_dtap(struct gsm_subscriber_connection *conn, struct msgb *msg, int link_id);
int gsm0808_page(struct gsm_bts *bts, unsigned int page_group,
unsigned int mi_len, uint8_t *mi, int chan_type);
#endif

View File

@ -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)
{

View File

@ -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);
}
/*