mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-22 03:31:54 +00:00
nfc_initiator_transceive_bytes() returns NFC_EMFCAUTHFAIL when AUTH command failed on a Mifare Classic
This commit is contained in:
@@ -285,15 +285,12 @@ pn53x_transceive(struct nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx
|
||||
break;
|
||||
case EMFAUTH:
|
||||
// When a MIFARE Classic AUTH fails, the tag is automatically in HALT state
|
||||
res = NFC_ETGRELEASED;
|
||||
res = NFC_EMFCAUTHFAIL;
|
||||
break;
|
||||
default:
|
||||
res = NFC_ECHIP;
|
||||
break;
|
||||
};
|
||||
/*
|
||||
{ EMFAUTH, "Mifare Authentication Error" },
|
||||
*/
|
||||
|
||||
if (res < 0) {
|
||||
pnd->last_error = res;
|
||||
|
||||
Reference in New Issue
Block a user