From 869f3c43bd70ef0e4d1869b5492ad7d5edd4d46d Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Fri, 22 Apr 2016 22:21:09 +0200 Subject: [PATCH] atusb: fw: use extended operation mode also for transmitting With this switch we have RX as well as TX extended operation mode for the transceiver enabled. Tested and verified for atusb as well as rzusb. The biggest change coming with this is that the hardware no handles automatic retransmit of frames if an ACK was requested but not received. The needed changes to the atusb kernel driver are also done already and will be submitted once we release version 0.3 with this change included. --- atusb/fw/mac.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atusb/fw/mac.c b/atusb/fw/mac.c index 016e9c5..265d542 100644 --- a/atusb/fw/mac.c +++ b/atusb/fw/mac.c @@ -233,15 +233,18 @@ static void do_tx(void *user) spi_send(tx_buf[i]); spi_end(); + change_state(TRX_STATUS_TX_ARET_ON); + slp_tr(); txing = 1; this_seq = next_seq; /* - * Wait until we reach BUSY_TX, so that we command the transition to + * Wait until we reach BUSY_TX_ARET, so that we command the transition to * RX_AACK_ON which will be executed upon TX completion. */ + change_state(TRX_CMD_PLL_ON); change_state(TRX_CMD_RX_AACK_ON); }