diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-06-18 19:38:18 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-06-23 14:55:51 +0200 |
commit | a6386ea64d5be35aea8fe9331270a9ef146984e5 (patch) | |
tree | 56f7313ede40f9b13bd3995f85fc8bbfc3c7b111 /include | |
parent | 8090df2a813a3cf174afb8acb9aba92b65d275fb (diff) |
bts_shutdown: Wait until all TRX are closed
Setting the phy link of a trx to SHUTDOWN sets operative state to
DISABLED, so we use operative state as a condition to know whether all
TRX are already powered off properly and we can exit.
Change-Id: I2bcd211d7edcc8486461a555d6c470a94b166ed7
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/bts_shutdown_fsm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmo-bts/bts_shutdown_fsm.h b/include/osmo-bts/bts_shutdown_fsm.h index 42f953a3..1e74ac6b 100644 --- a/include/osmo-bts/bts_shutdown_fsm.h +++ b/include/osmo-bts/bts_shutdown_fsm.h @@ -28,12 +28,14 @@ enum bts_shutdown_fsm_states { BTS_SHUTDOWN_ST_NONE, BTS_SHUTDOWN_ST_WAIT_RAMP_DOWN_COMPL, + BTS_SHUTDOWN_ST_WAIT_TRX_CLOSED, BTS_SHUTDOWN_ST_EXIT, }; enum bts_shutdown_fsm_events { BTS_SHUTDOWN_EV_START, BTS_SHUTDOWN_EV_TRX_RAMP_COMPL, + BTS_SHUTDOWN_EV_TRX_CLOSED, }; extern struct osmo_fsm bts_shutdown_fsm; |