aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-16 16:39:54 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-16 19:43:14 +0700
commitae09c8acb4aa93284cdb44f8bbdc14533dc4fa52 (patch)
tree8a53f982e45b1be53095d250b059f4f68bd2f1e2
parent967bca7b9e94a7ecb065b92da9008c8b75db9dec (diff)
fix pcu_if_signal_cb(): do not send INFO.ind if PCU is not connected
Sending INFO.ind unconditionally in pcu_if_signal_cb() provokes a lot of warnings during OML bootstrapping / termination: DPCU INFO pcu_sock.c:247 Sending info DPCU INFO pcu_sock.c:262 BTS is up DPCU INFO pcu_sock.c:205 (bts=0,trx=0) unavailable for PCU (op=Disabled adm=Unlocked) DPCU INFO pcu_sock.c:205 (bts=0,trx=1) unavailable for PCU (op=Disabled adm=Unlocked) Do not call pcu_tx_info_ind() if the PCU is not connected. Change-Id: If8bc8bec5ad808be8d40e91278a4a4fde84920b0
-rw-r--r--src/common/pcu_sock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 550dd37d..6586af8b 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -407,6 +407,10 @@ static int pcu_if_signal_cb(unsigned int subsys, unsigned int signal,
return -EINVAL;
}
+ /* Do not send INFO.ind if PCU is not connected */
+ if (!pcu_connected())
+ return 0;
+
/* If all infos have been received, of if one info is updated after
* all infos have been received, transmit info update. */
if (avail_lai && avail_nse && avail_cell && avail_nsvc[0])