From 6ab2c0e69a45768b08b41750fa6013d9d3f90fc1 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Mon, 8 Mar 2010 15:22:37 -0500 Subject: [PATCH] don't send ack's in rftest-tx --- tests/rftest-tx.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/rftest-tx.c b/tests/rftest-tx.c index 16fa0cb02..862b8ed52 100644 --- a/tests/rftest-tx.c +++ b/tests/rftest-tx.c @@ -11,17 +11,21 @@ /* 2 bytes are the FCS */ /* therefore 125 is the max payload length */ #define PAYLOAD_LEN 16 -#define DELAY 400000 +#define DELAY 100000 void fill_packet(volatile packet_t *p) { static volatile uint8_t count=0; volatile uint8_t i; p->length = PAYLOAD_LEN; p->offset = 0; - p->data[0] = 0xff; - for(i=1; idata[i] = count++; - } + } + + /* acks get treated differently, even in promiscuous mode */ + /* setting the second bit makes sure that we never send an ack */ + /* or any valid 802.15.4-2006 packet */ + p->data[0] |= (1 << 2); } void main(void) {