mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
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:
parent
41d0c7a7da
commit
b79cba9d7f
@ -618,7 +618,7 @@ void maca_isr(void) {
|
|||||||
dma_rx->rx_time = *MACA_TIMESTAMP;
|
dma_rx->rx_time = *MACA_TIMESTAMP;
|
||||||
|
|
||||||
/* check if received packet needs an ack */
|
/* 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 */
|
/* this wait is necessary to auto-ack */
|
||||||
volatile uint32_t wait_clk;
|
volatile uint32_t wait_clk;
|
||||||
wait_clk = *MACA_CLK + 200;
|
wait_clk = *MACA_CLK + 200;
|
||||||
|
Loading…
Reference in New Issue
Block a user