don't do the autoack delay on RX if promiscuous --- this allows a

sniffer to catch 802.15.4 acks.
This commit is contained in:
Mariano Alvira 2011-04-30 15:24:10 -04:00
parent 41d0c7a7da
commit b79cba9d7f

View file

@ -618,7 +618,7 @@ void maca_isr(void) {
dma_rx->rx_time = *MACA_TIMESTAMP;
/* check if received packet needs an ack */
if(dma_rx->data[1] & 0x20) {
if(prm_mode == AUTOACK && (dma_rx->data[1] & 0x20)) {
/* this wait is necessary to auto-ack */
volatile uint32_t wait_clk;
wait_clk = *MACA_CLK + 200;