aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-11-23 17:44:11 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-11-23 17:44:13 +0100
commit3c12325d28700774e5d256892cada6cf4dde0b4b (patch)
tree1a60fd3543ce6b925820ce7c8238580e0a6c61a1
parent133a3d96dc07ebda4dfc7899dab9c0d0c80c9fea (diff)
bts-trx: early return on POWERON success
Later on it's expected to add more rsp parsing, so let's return here and not depend on generic return further down. Change-Id: I8ddee46374ab329c47dc68e720e236f13d393f66
-rw-r--r--src/osmo-bts-trx/trx_if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index b0481702..abe6846d 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -450,6 +450,7 @@ static int trx_ctrl_rx_rsp(struct trx_l1h *l1h, struct trx_ctrl_rsp *rsp, bool c
if (rsp->status == 0) {
if (pinst->phy_link->state != PHY_LINK_CONNECTED)
phy_link_state_set(pinst->phy_link, PHY_LINK_CONNECTED);
+ return 0;
} else {
LOGP(DTRX, LOGL_NOTICE,
"transceiver (%s) rejected POWERON command (%d), re-trying in a few seconds\n",