From b9e8c17d8c4f28938c7cb0a665a1f21232ebdf66 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 23 Oct 2005 20:03:56 +0000 Subject: make "frametype" a parameter of transcieve functions git-svn-id: https://svn.gnumonks.org/trunk/librfid@1559 e0336214-984f-0b4b-a45f-81c69e1f0ede --- rfid_proto_tcl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'rfid_proto_tcl.c') diff --git a/rfid_proto_tcl.c b/rfid_proto_tcl.c index 248eea5..8590fd4 100644 --- a/rfid_proto_tcl.c +++ b/rfid_proto_tcl.c @@ -165,7 +165,8 @@ tcl_request_ats(struct rfid_protocol_handle *h) rats[1] = (h->priv.tcl.cid & 0x0f) | ((fsdi << 4) & 0xf0); /* transcieve (with CRC) */ - ret = h->l2h->l2->fn.transcieve(h->l2h, rats, 2, h->priv.tcl.ats, + ret = h->l2h->l2->fn.transcieve(h->l2h, RFID_14443A_FRAME_REGULAR, + rats, 2, h->priv.tcl.ats, &h->priv.tcl.ats_len, activation_fwt(h), TCL_TRANSP_F_TX_CRC); if (ret < 0) { @@ -432,7 +433,8 @@ tcl_deselect(struct rfid_protocol_handle *h) if (ret < 0) return ret; - ret = h->l2h->l2->fn.transcieve(h->l2h, frame, prlg_len, rx, + ret = h->l2h->l2->fn.transcieve(h->l2h, RFID_14443A_FRAME_REGULAR, + frame, prlg_len, rx, &rx_len, deactivation_fwt(h), TCL_TRANSP_F_TX_CRC); if (ret < 0) { @@ -494,7 +496,8 @@ tcl_transcieve(struct rfid_protocol_handle *h, _timeout = th->fwt; do_tx: - ret = h->l2h->l2->fn.transcieve(h->l2h, _tx, _tx_len, + ret = h->l2h->l2->fn.transcieve(h->l2h, RFID_14443A_FRAME_REGULAR, + _tx, _tx_len, rx_buf, rx_len, _timeout, 0); DEBUGP("l2 transcieve finished\n"); if (ret < 0) -- cgit v1.2.3