pespin submitted this change.
ran_peer: Avoid paging attempt if not ready
If the link is not ready it will fail to transmit the msg anyway,
so there's no use in trying to submit a page over it.
Change-Id: Ia858291f4454e4caf293e1aaf60ea04d2d4a64e9
---
M src/libmsc/ran_peer.c
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/libmsc/ran_peer.c b/src/libmsc/ran_peer.c
index a9a01e2..de07f88 100644
--- a/src/libmsc/ran_peer.c
+++ b/src/libmsc/ran_peer.c
@@ -675,6 +675,10 @@
{
struct msgb *l2;
+ /* ran_peer is not ready for paging (link not ready). */
+ if (rp->fi->state != RAN_PEER_ST_READY)
+ return 0;
+
/* There are also the RAN peers that are configured in the neighbor ident for Handover, but if those aren't
* connected, then we can't Page there. */
if (!cell_id_list_find(&rp->cells_seen, page_id, 0, false))
To view, visit change 40631. To unsubscribe, or for help writing mail filters, visit settings.