move gsm0502_calc_paging_group() to libosmocore

This commit is contained in:
Harald Welte 2011-06-26 14:48:11 +02:00
parent 1cf43ece12
commit c90499bb28
2 changed files with 1 additions and 18 deletions

View File

@ -43,7 +43,7 @@ AC_ARG_ENABLE([osmo-bsc], [AS_HELP_STRING([--enable-osmo-bsc], [Build the Osmo B
])
AM_CONDITIONAL(BUILD_BSC, test "x$osmo_ac_build_bsc" = "xyes")
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.0)
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.2)
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0)
PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.0)

View File

@ -54,23 +54,6 @@ void *tall_paging_ctx;
#define PAGING_TIMER 0, 500000
static unsigned int
gsm0502_calc_paging_group(struct gsm48_control_channel_descr *chan_desc, uint64_t imsi)
{
int ccch_conf;
int bs_cc_chans;
int blocks;
unsigned int group;
ccch_conf = chan_desc->ccch_conf;
bs_cc_chans = rsl_ccch_conf_to_bs_cc_chans(ccch_conf);
/* code word + 2, as 2 channels equals 0x0 */
blocks = gsm48_number_of_paging_subchannels(chan_desc);
group = gsm0502_get_paging_group(imsi, bs_cc_chans, blocks);
return group;
}
/*
* Kill one paging request update the internal list...
*/