From 703ce81dfc675c5ae38537c98fa58eabcb3763b1 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 9 Jun 2011 20:39:24 -0300 Subject: [PATCH] atrf-xmit.c (xfer_one): pulse SLP_TR instead of sending TRX_CMD_TX_START This makes sure we use SLP_TR just like the kernel does. --- tools/atrf-xmit/atrf-xmit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/atrf-xmit/atrf-xmit.c b/tools/atrf-xmit/atrf-xmit.c index e685104..2ae6d9d 100644 --- a/tools/atrf-xmit/atrf-xmit.c +++ b/tools/atrf-xmit/atrf-xmit.c @@ -72,7 +72,7 @@ static int xfer_one(struct atrf_dsc *tx, struct atrf_dsc *rx) uint8_t buf[PSDU_SIZE+1]; /* +1 for LQI */ int n, i; - atrf_reg_write(tx, REG_TRX_STATE, TRX_CMD_TX_START); + atrf_slp_tr(tx, 1, 1); #if 0 irq = wait_for_interrupt(rx, IRQ_TRX_END, IRQ_TRX_END | IRQ_RX_START, 1000, 5); /* 5 ms */