mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-12-23 04:31:46 +02:00
atrf-txrx.c (receive_message, receive_pcap): also ignore IRQ_AMI
The "raw" patterns can accidently trigger an address match, particularly in BER test mode.
This commit is contained in:
parent
9ab94a53e2
commit
16b095ca08
@ -137,8 +137,8 @@ static void receive_message(struct atrf_dsc *dsc)
|
||||
uint8_t ed, lqi;
|
||||
|
||||
fprintf(stderr, "Ready.\n");
|
||||
wait_for_interrupt(dsc, IRQ_TRX_END, IRQ_TRX_END | IRQ_RX_START,
|
||||
10, 0);
|
||||
wait_for_interrupt(dsc, IRQ_TRX_END,
|
||||
IRQ_TRX_END | IRQ_RX_START | IRQ_AMI, 10, 0);
|
||||
if (!run)
|
||||
return;
|
||||
|
||||
@ -216,7 +216,7 @@ static void receive_pcap(struct atrf_dsc *dsc, const char *name)
|
||||
write_pcap_hdr(file);
|
||||
while (run) {
|
||||
wait_for_interrupt(dsc,
|
||||
IRQ_TRX_END, IRQ_TRX_END | IRQ_RX_START,
|
||||
IRQ_TRX_END, IRQ_TRX_END | IRQ_RX_START | IRQ_AMI,
|
||||
10, 0);
|
||||
if (!run)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user