diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-04 12:44:03 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2021-10-04 14:33:09 +0000 |
commit | 0d8f51f1a566e2ecafafae26b1889028d938eecc (patch) | |
tree | ddeb7f98ed773c50f47055228a3e9f78b6ff09be /include | |
parent | 582d9cf0d573d77f73400d9d110742cf0e89c7a9 (diff) |
trx_provision_fsm: poweronoff_sent flag: track POWERON and POWEROFF separately
It helps better understanding the code, and will allow handling
situations where for instance a POWERON in in transit while the BTS is
instructed to shutdown, hence a POWEROFF needs to be sent.
Change-Id: Iaf62217ceab7420afa4140cba61e1c2f983c61b4
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/phy_link.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmo-bts/phy_link.h b/include/osmo-bts/phy_link.h index ac38c289..862ed48f 100644 --- a/include/osmo-bts/phy_link.h +++ b/include/osmo-bts/phy_link.h @@ -50,7 +50,8 @@ struct phy_link { bool use_legacy_setbsic; uint8_t trxd_pdu_ver_max; /* Maximum TRXD PDU version to negotiate */ bool powered; /* last POWERON (true) or POWEROFF (false) confirmed */ - bool poweronoff_sent; /* is there a POWERON/POWEROFF in transit? (one or the other based on ->powered) */ + bool poweron_sent; /* is there a POWERON in transit? */ + bool poweroff_sent; /* is there a POWEROFF in transit? */ } osmotrx; struct { char *mcast_dev; /* Network device for multicast */ |