laforge submitted this change.
pcu_tx_rach_ind(): Avoid forwarding chan_rqd to PCU if not expected
Change-Id: Ic12aa9842227b2d815bb91f8587c8b258d07f169
---
M src/osmo-bsc/pcu_sock.c
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/osmo-bsc/pcu_sock.c b/src/osmo-bsc/pcu_sock.c
index 7b1aeae..d4eee44 100644
--- a/src/osmo-bsc/pcu_sock.c
+++ b/src/osmo-bsc/pcu_sock.c
@@ -419,10 +419,15 @@
/* Bail if no PCU is connected */
if (!pcu_connected(bts->network)) {
- LOG_BTS(bts, DRSL, LOGL_ERROR, "CHAN RQD(GPRS) but PCU not connected!\n");
+ LOG_BTS(bts, DPCU, LOGL_ERROR, "CHAN RQD(GPRS) but PCU not connected!\n");
return -ENODEV;
}
+ if (!bsc_co_located_pcu(bts)) {
+ LOG_BTS(bts, DPCU, LOGL_ERROR, "CHAN RQD(GPRS) on BTS whose PCU is not BSC-colocated!\n");
+ return -EINVAL;
+ }
+
LOG_BTS(bts, DPCU, LOGL_INFO, "Sending RACH indication: qta=%d, ra=%d, "
"fn=%d\n", qta, ra, fn);
To view, visit change 38076. To unsubscribe, or for help writing mail filters, visit settings.