From 64b036b129aeca61ccc0ab321dd31b5f0ecd80fa Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Thu, 5 May 2011 11:49:43 +0000 Subject: [PATCH] drivers: InDataExchange is an abortable command too. --- libnfc/drivers/arygon.c | 5 +++-- libnfc/drivers/pn532_uart.c | 3 ++- libnfc/drivers/pn53x_usb.c | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/libnfc/drivers/arygon.c b/libnfc/drivers/arygon.c index 45a5f90..8012966 100644 --- a/libnfc/drivers/arygon.c +++ b/libnfc/drivers/arygon.c @@ -284,9 +284,10 @@ arygon_tama_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLe switch (CHIP_DATA (pnd)->ui8LastCommand) { case InAutoPoll: - case TgInitAsTarget: - case TgGetData: + case InDataExchange: case InJumpForDEP: + case TgGetData: + case TgInitAsTarget: abort_fd = DRIVER_DATA (pnd)->iAbortFds[1]; break; default: diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index 0cca5b3..f178202 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -271,9 +271,10 @@ pn532_uart_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLen switch (CHIP_DATA (pnd)->ui8LastCommand) { case InAutoPoll: + case InDataExchange: case InJumpForDEP: - case TgInitAsTarget: case TgGetData: + case TgInitAsTarget: abort_fd = DRIVER_DATA (pnd)->iAbortFds[1]; break; default: diff --git a/libnfc/drivers/pn53x_usb.c b/libnfc/drivers/pn53x_usb.c index 612617b..6a1cb85 100644 --- a/libnfc/drivers/pn53x_usb.c +++ b/libnfc/drivers/pn53x_usb.c @@ -411,10 +411,10 @@ pn53x_usb_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLen) bool delayed_reply = false; switch (CHIP_DATA (pnd)->ui8LastCommand) { + case InDataExchange: case InJumpForDEP: - case TgInitAsTarget: case TgGetData: - DBG ("Delayed reply detected"); + case TgInitAsTarget: delayed_reply = true; break; default: