summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-05-27 18:26:11 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-05-27 18:26:11 +0000
commit4a3f4051f3bb9ba34ccc888cac22bf68a7667c42 (patch)
treefede78af7496f35c06343c6ed26077cdb819187f /utils
parent5c16b1315c2b99f7946dd39b17d18a56ea02b5dc (diff)
use block number, not sector (Henryk Ploetz)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1806 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'utils')
-rw-r--r--utils/librfid-tool.c2
1 files changed, 1 insertions, 1 deletions
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);
personal git repositories of Harald Welte. Your mileage may vary