1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 07:45:56 +02:00

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.
This commit is contained in:
Stefan Schmidt 2016-04-22 22:21:09 +02:00
parent dce8462939
commit 869f3c43bd

View File

@ -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);
}