From 053f73dce45cd5d4d6fd53282bf425e2ae1e3830 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Mon, 6 Sep 2010 11:26:26 -0400 Subject: [PATCH] discard received packets --- this lets you run multiple rftest-tx's at the same time. --- tests/rftest-tx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/rftest-tx.c b/tests/rftest-tx.c index d4d77a258..ae7bf89c6 100644 --- a/tests/rftest-tx.c +++ b/tests/rftest-tx.c @@ -93,6 +93,10 @@ void main(void) { /* a few lockup conditions */ check_maca(); + while((p = rx_packet())) { + if(p) free_packet(p); + } + p = get_free_packet(); if(p) { fill_packet(p);