From 4a3f4051f3bb9ba34ccc888cac22bf68a7667c42 Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 27 May 2006 18:26:11 +0000 Subject: use block number, not sector (Henryk Ploetz) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1806 e0336214-984f-0b4b-a45f-81c69e1f0ede --- utils/librfid-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/librfid-tool.c b/utils/librfid-tool.c index e151e45..5e55b50 100644 --- a/utils/librfid-tool.c +++ b/utils/librfid-tool.c @@ -405,7 +405,7 @@ int main(int argc, char **argv) printf("key format error\n"); exit(1); } - rc = mfcl_auth(ph, RFID_CMD_MIFARE_AUTH1A, sector); + rc = mfcl_auth(ph, RFID_CMD_MIFARE_AUTH1A, sector*4); if (rc < 0) { printf("mifare auth error\n"); exit(1); -- cgit v1.2.3