move gsm0502_calc_paging_group() to libosmocore
diff --git a/openbsc/configure.ac b/openbsc/configure.ac
index 74b3044..5951618 100644
--- a/openbsc/configure.ac
+++ b/openbsc/configure.ac
@@ -43,7 +43,7 @@
     ])
 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)
 
diff --git a/openbsc/src/libbsc/paging.c b/openbsc/src/libbsc/paging.c
index 55d1a85..4dfa921 100644
--- a/openbsc/src/libbsc/paging.c
+++ b/openbsc/src/libbsc/paging.c
@@ -54,23 +54,6 @@
 
 #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...
  */