mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 14:10:37 +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:
parent
ec7c93789a
commit
703ce81dfc
@ -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 */
|
uint8_t buf[PSDU_SIZE+1]; /* +1 for LQI */
|
||||||
int n, i;
|
int n, i;
|
||||||
|
|
||||||
atrf_reg_write(tx, REG_TRX_STATE, TRX_CMD_TX_START);
|
atrf_slp_tr(tx, 1, 1);
|
||||||
#if 0
|
#if 0
|
||||||
irq = wait_for_interrupt(rx, IRQ_TRX_END, IRQ_TRX_END | IRQ_RX_START,
|
irq = wait_for_interrupt(rx, IRQ_TRX_END, IRQ_TRX_END | IRQ_RX_START,
|
||||||
1000, 5); /* 5 ms */
|
1000, 5); /* 5 ms */
|
||||||
|
Loading…
Reference in New Issue
Block a user