diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-01-16 19:16:53 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-01-19 15:41:19 +0100 |
commit | 9a57c7bed4c096ccff4f9fc78b7ef789eeb18360 (patch) | |
tree | 39f284279d1bae418ef7abb45058b80860909a1f /src/osmo-bts-trx/trx_if.c | |
parent | 63948b033d41982b5e986a9c8a15fcfcd364eb25 (diff) |
bts-trx: trx_if.c: Log timedout+retransmitted CMD
Change-Id: Ib573c86a1640640c2a61e80fe1f1412b30342b1a
Diffstat (limited to 'src/osmo-bts-trx/trx_if.c')
-rw-r--r-- | src/osmo-bts-trx/trx_if.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c index 57fd953a..8123de03 100644 --- a/src/osmo-bts-trx/trx_if.c +++ b/src/osmo-bts-trx/trx_if.c @@ -167,9 +167,14 @@ static void trx_ctrl_send(struct trx_l1h *l1h) static void trx_ctrl_timer_cb(void *data) { struct trx_l1h *l1h = data; + struct trx_ctrl_msg *tcm = NULL; - LOGP(DTRX, LOGL_NOTICE, "No response from transceiver for %s\n", - phy_instance_name(l1h->phy_inst)); + /* get first command */ + OSMO_ASSERT(!llist_empty(&l1h->trx_ctrl_list)); + tcm = llist_entry(l1h->trx_ctrl_list.next, struct trx_ctrl_msg, list); + + LOGP(DTRX, LOGL_NOTICE, "No response from transceiver for %s (%s)\n", + phy_instance_name(l1h->phy_inst), tcm->cmd); trx_ctrl_send(l1h); } |