dexter has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bsc/+/31111 )
Change subject: pcu_sock: complain when not PDCH is available at all
......................................................................
pcu_sock: complain when not PDCH is available at all
In case no PDCH is currently available (resources exhausted, or simple a
bug that prevents TS to be recognized as usable for PDCH) display an
error message to inform the user about this.
Change-Id: Ie3e5409cd798f6027404c0ff95297af850e516c4
Related: OS#5198
---
M src/osmo-bsc/pcu_sock.c
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/11/31111/1
diff --git a/src/osmo-bsc/pcu_sock.c b/src/osmo-bsc/pcu_sock.c
index def2df0..e8e7109 100644
--- a/src/osmo-bsc/pcu_sock.c
+++ b/src/osmo-bsc/pcu_sock.c
@@ -123,6 +123,7 @@
{
unsigned int tn;
const struct gsm_bts_trx_ts *ts;
+ bool found_pdch = false;
trx_info->hlayer1 = 0x2342;
trx_info->pdch_mask = 0;
@@ -157,7 +158,12 @@
ts->hopping.hsn, ts->hopping.maio, trx_info->ts[tn].ma_bit_len);
else
LOGPC(DPCU, LOGL_INFO, "hopping=no arfcn=%u)\n", trx->arfcn);
+
+ found_pdch = true;
}
+
+ if (!found_pdch)
+ LOG_TRX(trx, DPCU, LOGL_NOTICE, "unavailable for PCU -- currently no TS available
for PDCH\n");
}
/* Send BTS properties to the PCU */
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bsc/+/31111
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ie3e5409cd798f6027404c0ff95297af850e516c4
Gerrit-Change-Number: 31111
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newchange