Change in osmo-bts[master]: bts-trx: early return on POWERON success

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Fri Nov 23 16:44:39 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/05/11905/1

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: newchange
Gerrit-Change-Id: I8ddee46374ab329c47dc68e720e236f13d393f66
Gerrit-Change-Number: 11905
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181123/882fb53f/attachment.html>


More information about the gerrit-log mailing list