From: merlokk <olegmsn@gmail.com>
Date: Wed, 1 Nov 2017 15:02:35 +0000 (+0200)
Subject: now SAK check is OK
X-Git-Tag: v3.1.0~133^2~10
X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/89ec86abd293e6294223e971278caf4aad2be190?hp=c5e9a0212e68f864371439cb5be8fd227002e9c8

now SAK check is OK
---

diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c
index 01026aa5..860af238 100644
--- a/armsrc/iso14443a.c
+++ b/armsrc/iso14443a.c
@@ -1817,8 +1817,8 @@ int iso14443a_select_card(byte_t *uid_ptr, iso14a_card_select_t *p_hi14a_card, u
 	}
 
 	// non iso14443a compliant tag
-	// now not work
-	//if( (sak & 0x20) == 0) return 2; 
+	// https://www.nxp.com/docs/en/application-note/AN10834.pdf page 7
+	if( (sak & 0x20) != 0) return 2; 
 
 	if (!no_rats) {
 		// Request for answer to select