Harald Welte has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/11905 )

Change subject: bts-trx: early return on POWERON success
......................................................................

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
---
M src/osmo-bts-trx/trx_if.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index b048170..abe6846 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -450,6 +450,7 @@
                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",

--
To view, visit https://gerrit.osmocom.org/11905
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I8ddee46374ab329c47dc68e720e236f13d393f66
Gerrit-Change-Number: 11905
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)

Reply via email to