Returns a NFC_ETGRELEASED error when MIFARE Classic's authentication failed (instead of NFC_ECHIP): a MIFARE Classic is halted on AUTH command failure.
This commit is contained in:
parent
c7820c6a77
commit
b7a74931f6
1 changed files with 4 additions and 0 deletions
|
@ -267,6 +267,10 @@ pn53x_transceive(struct nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx
|
|||
case ECDISCARDED:
|
||||
res = NFC_ETGRELEASED;
|
||||
break;
|
||||
case EMFAUTH:
|
||||
// When a MIFARE Classic AUTH fails, the tag is automatically in HALT state
|
||||
res = NFC_ETGRELEASED;
|
||||
break;
|
||||
default:
|
||||
res = NFC_ECHIP;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue