From 37c2f136d2897385089387e2572a240e27cf0565 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 11 Sep 2005 20:00:19 +0000 Subject: fix some TCL / ISO14443B interaction on FWT git-svn-id: https://svn.gnumonks.org/trunk/librfid@1427 e0336214-984f-0b4b-a45f-81c69e1f0ede --- rfid_proto_tcl.c | 5 +++-- 1 file 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; } -- cgit v1.2.3