mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-26 19:32:28 +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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user