diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-10-16 23:07:18 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-10-16 23:08:38 +0700 |
commit | 39264cc3a824fc10624e9e77ed8dce034873bd53 (patch) | |
tree | f09d9d5bf406926e4a2bbdd9e94e4e2b80b719af | |
parent | e42e5a078926c63523235bdd8b0e84371effd592 (diff) |
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
-rw-r--r-- | src/host/trxcon/trx_if.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |