From b79cba9d7fac058a00ede5f7a5a26494f9f6efe8 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Sat, 30 Apr 2011 15:24:10 -0400 Subject: [PATCH] don't do the autoack delay on RX if promiscuous --- this allows a sniffer to catch 802.15.4 acks. --- lib/maca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/maca.c b/lib/maca.c index 808fd5131..e6ea4a2a8 100644 --- a/lib/maca.c +++ b/lib/maca.c @@ -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;