1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 18:57:11 +02:00

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.
This commit is contained in:
Werner Almesberger 2011-06-09 20:39:24 -03:00
parent ec7c93789a
commit 703ce81dfc

View File

@ -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 */