diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-01-15 18:24:03 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-01-16 17:26:22 +0100 |
commit | 0c017618cd335f88712174154575ce9569a4634c (patch) | |
tree | 016473c126677836c2561dc31bb293d8109b8595 /src/osmo-bts-octphy/l1_oml.c | |
parent | 8d198f3598f7e0928f7b4001088dfbf007873791 (diff) |
OCTPHY: Block PHY indications until it is confirmed open
When re-starting OsmoBTS after unclean shutdown, the PHY is already
sending notifications (PH-DATA.ind, PH-TIME.ind, etc.) for the previous
physical channel / timeslot configuration. At the point those messages
are received, OsmoBTS might not even have A-bis OML up yet, and thus has
no clue how to process such messages (and subsequently likely crashes).
Let's block such primitives from passing further up the code until we
have received the TRX-OPEN response.
Diffstat (limited to 'src/osmo-bts-octphy/l1_oml.c')
-rw-r--r-- | src/osmo-bts-octphy/l1_oml.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bts-octphy/l1_oml.c b/src/osmo-bts-octphy/l1_oml.c index 1e2bf44e..d682b841 100644 --- a/src/osmo-bts-octphy/l1_oml.c +++ b/src/osmo-bts-octphy/l1_oml.c @@ -1141,6 +1141,7 @@ static int trx_open_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp, void *d octphy_hw_get_rf_ant_rx_config(fl1h, 0, 1); octphy_hw_get_rf_ant_tx_config(fl1h, 0, 1); octphy_hw_get_clock_sync_info(fl1h); + fl1h->opened = 1; /* Temporary fix for enabling events after TRX Close + Reopen */ return l1if_enable_events(trx); |