summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rfid_proto_mifare_ul.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rfid_proto_mifare_ul.c b/src/rfid_proto_mifare_ul.c
index e1fe3b9..ea42166 100644
--- a/src/rfid_proto_mifare_ul.c
+++ b/src/rfid_proto_mifare_ul.c
@@ -109,7 +109,8 @@ mful_getopt(struct rfid_protocol_handle *ph, int optname, void *optval,
switch (optname) {
case RFID_OPT_PROTO_SIZE:
ret = 0;
- *size = 512;
+ /* we have to return the size in bytes, not bits */
+ *size = 512/8;
break;
}
personal git repositories of Harald Welte. Your mileage may vary