From 39264cc3a824fc10624e9e77ed8dce034873bd53 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 16 Oct 2020 23:07:18 +0700 Subject: fix trx_if_tx_burst(): do not drop Uplink bursts in TRX_STATE_RSP_WAIT Some commands, such as SETTA or SETPOWER, are expected to be sent when the transceiver is powered on. We should not drop Uplink bursts while waiting TRXC response. For now it's easier to comment out the state check completely, because the existing TRXC state machine is quite messy. Change-Id: Iefe6030200b11b29a5790d1f4aa4070ed1d9a493 --- src/host/trxcon/trx_if.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c index 7a736a85..e1ce5881 100644 --- a/src/host/trxcon/trx_if.c +++ b/src/host/trxcon/trx_if.c @@ -641,11 +641,13 @@ int trx_if_tx_burst(struct trx_instance *trx, uint8_t tn, uint32_t fn, * TODO: introduce proper state machines for both * transceiver and its TRXC interface. */ +#if 0 if (trx->fsm->state != TRX_STATE_ACTIVE) { LOGP(DTRXD, LOGL_ERROR, "Ignoring TX data, " "transceiver isn't ready\n"); return -EAGAIN; } +#endif LOGP(DTRXD, LOGL_DEBUG, "TX burst tn=%u fn=%u pwr=%u\n", tn, fn, pwr); -- cgit v1.2.3