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
This commit is contained in:
Vadim Yanitskiy 2020-10-16 16:39:54 +07:00
parent 967bca7b9e
commit ae09c8acb4
1 changed files with 4 additions and 0 deletions

View File

@ -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])