diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-05-26 18:57:06 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-05-26 19:05:58 +0200 |
commit | 1cad2f51c6f8508d81c062cc715adb88488a8ffc (patch) | |
tree | 548274654c49720519257466b2cf88bd5e58200e /src/common/abis.c | |
parent | 518ada9414755ab859e0139289090a1ef7ba9be3 (diff) |
Fix regression in 'bts: Clean up TS selection in sign_link_up'
Fixes: 518ada9414755ab859e0139289090a1ef7ba9be3
Change-Id: I63af96235eb6e0a7334936f65e1f44d4422198a5
Diffstat (limited to 'src/common/abis.c')
-rw-r--r-- | src/common/abis.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/abis.c b/src/common/abis.c index 55962bdd..ba3169a9 100644 --- a/src/common/abis.c +++ b/src/common/abis.c @@ -118,6 +118,8 @@ static struct e1inp_sign_link *sign_link_up(void *unit, struct e1inp_line *line, return g_bts->oml_link; case E1INP_SIGN_RSL: + /* fall through to default to catch TRXn having type = E1INP_SIGN_RSL + n */ + default: trx_nr = type - E1INP_SIGN_RSL; sign_ts = e1inp_line_ipa_rsl_ts(line, trx_nr); LOGP(DABIS, LOGL_INFO, "RSL Signalling link for TRX%d up\n", @@ -133,10 +135,6 @@ static struct e1inp_sign_link *sign_link_up(void *unit, struct e1inp_line *line, trx, trx->rsl_tei, 0); trx_link_estab(trx); return trx->rsl_link; - - default: - LOGP(DABIS, LOGL_ERROR, "Unknwon Signalling link up %d\n", (int)type); - return NULL; } return NULL; } |