1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-23 00:28:26 +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:
Werner Almesberger 2011-04-19 06:59:19 -03:00
parent 9ab94a53e2
commit 16b095ca08

View File

@ -137,8 +137,8 @@ static void receive_message(struct atrf_dsc *dsc)
uint8_t ed, lqi; uint8_t ed, lqi;
fprintf(stderr, "Ready.\n"); fprintf(stderr, "Ready.\n");
wait_for_interrupt(dsc, IRQ_TRX_END, IRQ_TRX_END | IRQ_RX_START, wait_for_interrupt(dsc, IRQ_TRX_END,
10, 0); IRQ_TRX_END | IRQ_RX_START | IRQ_AMI, 10, 0);
if (!run) if (!run)
return; return;
@ -216,7 +216,7 @@ static void receive_pcap(struct atrf_dsc *dsc, const char *name)
write_pcap_hdr(file); write_pcap_hdr(file);
while (run) { while (run) {
wait_for_interrupt(dsc, 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); 10, 0);
if (!run) if (!run)
break; break;