Allow multiple bts objects in PCU
This patch doesn't really tests whether osmo-pcu can work on a multi-bts
environment, but it prepares the data structures to be able to do so at
any later point in time.
Change-Id: I6b10913f46c19d438c4e250a436a7446694b725a
diff --git a/src/gprs_rlcmac.cpp b/src/gprs_rlcmac.cpp
index 4fb75f7..71849b8 100644
--- a/src/gprs_rlcmac.cpp
+++ b/src/gprs_rlcmac.cpp
@@ -32,7 +32,8 @@
extern void *tall_pcu_ctx;
-int gprs_rlcmac_paging_request(const struct osmo_mobile_identity *mi, uint16_t pgroup)
+int gprs_rlcmac_paging_request(struct gprs_rlcmac_bts *bts, const struct osmo_mobile_identity *mi,
+ uint16_t pgroup)
{
if (log_check_level(DRLCMAC, LOGL_NOTICE)) {
char str[64];
@@ -46,7 +47,7 @@
LOGP(DRLCMAC, LOGL_ERROR, "TX: [PCU -> BTS] Failed to encode Paging Request\n");
return -1;
}
- pcu_l1if_tx_pch(paging_request, plen, pgroup);
+ pcu_l1if_tx_pch(bts, paging_request, plen, pgroup);
bitvec_free(paging_request);
return 0;