diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-06 17:57:44 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-06 17:58:36 +0100 |
commit | 5695f25b3dc97459af3106806bab0ae6641901bb (patch) | |
tree | e45da15c07e0566b8700bbcfb0f73e55f83c9f73 | |
parent | ed6cc3e51e5da26c5bd8d5d6b88b388fb0bcd4b5 (diff) |
xua: Select only active ASPs during tx in Override traffic mode
Change-Id: I7eb049011b81c5141fd3edf6f0ae0202ffb2c6c9
-rw-r--r-- | src/xua_as_fsm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xua_as_fsm.c b/src/xua_as_fsm.c index 04e592c..5d0b327 100644 --- a/src/xua_as_fsm.c +++ b/src/xua_as_fsm.c @@ -83,9 +83,7 @@ static struct osmo_ss7_asp *xua_as_select_asp_override(struct osmo_ss7_as *as) /* FIXME: proper selection of the ASP based on the SLS! */ for (i = 0; i < ARRAY_SIZE(as->cfg.asps); i++) { asp = as->cfg.asps[i]; - if (!asp) - continue; - if (asp) + if (asp && osmo_ss7_asp_active(asp)) break; } return asp; |