From ae09c8acb4aa93284cdb44f8bbdc14533dc4fa52 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 16 Oct 2020 16:39:54 +0700 Subject: 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 --- src/common/pcu_sock.c | 4 ++++ 1 file changed, 4 insertions(+) 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]) -- cgit v1.2.3