summaryrefslogtreecommitdiff
path: root/src/rfid_proto_mifare_ul.c
diff options
context:
space:
mode:
authorploetz <ploetz@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-03-20 00:47:12 +0000
committerploetz <ploetz@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-03-20 00:47:12 +0000
commit93ffaaefecb5b83a39e30d4126dbbbd78f901aa2 (patch)
treea91a15f44236ae433329b6a13c5784da2399011f /src/rfid_proto_mifare_ul.c
parent9a8dbae5c77a0277a8c52610ebb113bf3a151a1d (diff)
Add RFID_OPT_14443A_WUPA to request WUPA instead of REQA (Rainer Keller <mail@rainerkeller.de>)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1985 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src/rfid_proto_mifare_ul.c')
-rw-r--r--src/rfid_proto_mifare_ul.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rfid_proto_mifare_ul.c b/src/rfid_proto_mifare_ul.c
index 65347b1..7243c89 100644
--- a/src/rfid_proto_mifare_ul.c
+++ b/src/rfid_proto_mifare_ul.c
@@ -110,7 +110,7 @@ mful_transceive(struct rfid_protocol_handle *ph,
static int
mful_getopt(struct rfid_protocol_handle *ph, int optname, void *optval,
- unsigned int optlen)
+ unsigned int *optlen)
{
int ret = -EINVAL;
u_int16_t atqa;
@@ -139,7 +139,7 @@ mful_init(struct rfid_layer2_handle *l2h)
/* According to "Type Identification Procedure Rev. 1.3" */
rfid_layer2_getopt(l2h, RFID_OPT_14443A_ATQA,
- &atqa, atqa_len);
+ &atqa, &atqa_len);
if (atqa != 0x0044)
return NULL;
personal git repositories of Harald Welte. Your mileage may vary