1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-22 19:48:39 +02:00

atusb/fw: Use RX_AACK_ON instead of RX_ON in the firmware.

This allows to run the device in ARET networks as we handle the needed
automated ACK in hardware.
This commit is contained in:
Stefan Schmidt 2015-05-20 15:00:57 +02:00
parent 464ab40e39
commit fc7551e532

View File

@ -182,7 +182,7 @@ bool mac_rx(int on)
if (on) {
mac_irq = handle_irq;
reg_read(REG_IRQ_STATUS);
change_state(TRX_CMD_RX_ON);
change_state(TRX_CMD_RX_AACK_ON);
} else {
mac_irq = NULL;
change_state(TRX_CMD_FORCE_TRX_OFF);
@ -232,9 +232,9 @@ static void do_tx(void *user)
/*
* Wait until we reach BUSY_TX, so that we command the transition to
* RX_ON which will be executed upon TX completion.
* RX_AACK_ON which will be executed upon TX completion.
*/
change_state(TRX_CMD_RX_ON);
change_state(TRX_CMD_RX_AACK_ON);
}