]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
revert SAK check
authormerlokk <olegmsn@gmail.com>
Wed, 1 Nov 2017 16:22:03 +0000 (18:22 +0200)
committermerlokk <olegmsn@gmail.com>
Wed, 1 Nov 2017 16:22:03 +0000 (18:22 +0200)
armsrc/iso14443a.c

index 7d4840154d3d33ffdc223b7bce341a881a43851a..33db9f223ef7b899b387c1ed1bd4583814217b88 100644 (file)
@@ -1820,9 +1820,8 @@ int iso14443a_select_card(byte_t *uid_ptr, iso14a_card_select_t *p_hi14a_card, u
                p_hi14a_card->sak = sak;
        }
 
                p_hi14a_card->sak = sak;
        }
 
-       // non iso14443a compliant tag
-       // https://www.nxp.com/docs/en/application-note/AN10834.pdf page 7
-       if( (sak & 0x20) != 0) return 2; 
+       // PICC compilant with iso14443a-4 ---> (SAK & 0x20 != 0)
+       if( (sak & 0x20) == 0) return 2; 
 
        if (!no_rats) {
                // Request for answer to select
 
        if (!no_rats) {
                // Request for answer to select
Impressum, Datenschutz