summaryrefslogtreecommitdiff
path: root/rfid_proto_tcl.c
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-09-11 20:00:19 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-09-11 20:00:19 +0000
commit37c2f136d2897385089387e2572a240e27cf0565 (patch)
tree625d64a560efbaad7de6894b9325e0b699d15e59 /rfid_proto_tcl.c
parent098ef26c87b27ddac5eb41f1317fe552fe16e3a7 (diff)
fix some TCL / ISO14443B interaction on FWT
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1427 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'rfid_proto_tcl.c')
-rw-r--r--rfid_proto_tcl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rfid_proto_tcl.c b/rfid_proto_tcl.c
index e60af55..8c51da9 100644
--- a/rfid_proto_tcl.c
+++ b/rfid_proto_tcl.c
@@ -96,12 +96,13 @@ tcl_parse_ats(struct rfid_protocol_handle *h,
h->priv.tcl.fsc = 32;
h->priv.tcl.ta = 0;
h->priv.tcl.sfgt = sfgi_to_sfgt(h, 0);
- if (1 /* FIXME: is_iso14443a */) {
+ if (h->l2h->l2->id == RFID_LAYER2_ISO14443A) {
/* Section 7.2: fwi default for type A is 4 */
h->priv.tcl.fwt = fwi_to_fwt(h, 4);
} else {
/* Section 7.2: fwi for type B is always in ATQB */
- /* FIXME */
+ /* Value is assigned in tcl_connect() */
+ /* This function is never called for Type B, since it has no (R)ATS */
}
return 0;
}
personal git repositories of Harald Welte. Your mileage may vary