mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 11:03:48 +00:00
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:
@@ -267,6 +267,10 @@ pn53x_transceive(struct nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx
|
|||||||
case ECDISCARDED:
|
case ECDISCARDED:
|
||||||
res = NFC_ETGRELEASED;
|
res = NFC_ETGRELEASED;
|
||||||
break;
|
break;
|
||||||
|
case EMFAUTH:
|
||||||
|
// When a MIFARE Classic AUTH fails, the tag is automatically in HALT state
|
||||||
|
res = NFC_ETGRELEASED;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
res = NFC_ECHIP;
|
res = NFC_ECHIP;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user