-// Merlok, 2011\r
+// Merlok, 2011, 2012\r
// people from mifare@nethemba.com, 2010\r
//\r
// This code is licensed to you under the terms of the GNU GPL, version 2 or,\r
memset(block0, 0, 16);\r
memcpy(block0, uid, 4); \r
block0[4] = block0[0]^block0[1]^block0[2]^block0[3]; // Mifare UID BCC\r
+ // mifare classic SAK(byte 5) and ATQA(byte 6 and 7)\r
+ block0[5] = 0x88;\r
+ block0[6] = 0x04;\r
+ block0[7] = 0x00;\r
\r
return mfCSetBlock(0, block0, oldUID, wantWipe, CSETBLOCK_SINGLE_OPER);\r
}\r