fixeria has uploaded this change for review.

View Change

trxcon: trx_if_close(): power the transceiver off if needed

Change-Id: I9c5178907304b36ec3de0ee31b7f7a9ed2e31c16
---
M src/host/trxcon/src/trx_if.c
1 file changed, 4 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/94/28794/1
diff --git a/src/host/trxcon/src/trx_if.c b/src/host/trxcon/src/trx_if.c
index 4b59cfd..a91a6db 100644
--- a/src/host/trxcon/src/trx_if.c
+++ b/src/host/trxcon/src/trx_if.c
@@ -775,6 +775,10 @@

LOGPFSML(trx->fi, LOGL_NOTICE, "Shutdown transceiver interface\n");

+ /* Power off if the transceiver is up */
+ if (trx->powered_up)
+ trx_if_cmd_poweroff(trx);
+
/* Abort TRXC response timer (if pending) */
osmo_timer_del(&trx->trx_ctrl_timer);


To view, visit change 28794. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I9c5178907304b36ec3de0ee31b7f7a9ed2e31c16
Gerrit-Change-Number: 28794
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-MessageType: newchange