Rename abtUid from struct mifare_param_auth into abtAuthUid: this is not the UID while using 7-bytes UID MIFARE Classic tags.

This commit is contained in:
Romuald Conty 2012-06-03 21:02:54 +00:00
parent c973800164
commit ce443d50ca
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ typedef enum {
// MIFARE command params
struct mifare_param_auth {
uint8_t abtKey[6];
uint8_t abtUid[4];
uint8_t abtAuthUid[4];
};
struct mifare_param_data {

View file

@ -175,7 +175,7 @@ authenticate(uint32_t uiBlock)
size_t key_index;
// Set the authentication information (uid)
memcpy(mp.mpa.abtUid, nt.nti.nai.abtUid + nt.nti.nai.szUidLen - 4, 4);
memcpy(mp.mpa.abtAuthUid, nt.nti.nai.abtUid + nt.nti.nai.szUidLen - 4, 4);
// Should we use key A or B?
mc = (bUseKeyA) ? MC_AUTH_A : MC_AUTH_B;