From 8648967468f2601839fd6beb01a2a67c8852cc29 Mon Sep 17 00:00:00 2001 From: Yukai Li Date: Thu, 13 Oct 2022 10:07:06 -0600 Subject: [PATCH] nfc: Don't try to auth NTAG on read if we already authed --- lib/nfc/protocols/mifare_ultralight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nfc/protocols/mifare_ultralight.c b/lib/nfc/protocols/mifare_ultralight.c index 0f97a8440..fbe12bded 100644 --- a/lib/nfc/protocols/mifare_ultralight.c +++ b/lib/nfc/protocols/mifare_ultralight.c @@ -758,7 +758,7 @@ bool mf_ul_read_card( data->curr_authlim = 0; if(reader->pages_read == reader->pages_to_read && - reader->supported_features & MfUltralightSupportAuth) { + reader->supported_features & MfUltralightSupportAuth && !data->auth_success) { MfUltralightConfigPages* config = mf_ultralight_get_config_pages(data); if(config->access.authlim == 0) { // Attempt to auth with default PWD