projects
/
librfid
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b93047a
)
minor cosmetic cleanup, use macro instead of explicit check
author
Harald Welte
<laforge@gnumonks.org>
Fri, 23 Jun 2006 21:47:00 +0000
(21:47 +0000)
committer
Harald Welte
<laforge@gnumonks.org>
Fri, 23 Jun 2006 21:47:00 +0000
(21:47 +0000)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1833
e0336214
-984f-0b4b-a45f-
81c69e1f0ede
src/rfid_proto_tcl.c
patch
|
blob
|
history
diff --git
a/src/rfid_proto_tcl.c
b/src/rfid_proto_tcl.c
index
ae47f87
..
e6735a8
100644
(file)
--- a/
src/rfid_proto_tcl.c
+++ b/
src/rfid_proto_tcl.c
@@
-345,9
+345,8
@@
tcl_build_prologue2(struct tcl_handle *th,
prlg[*prlg_len] = th->cid & 0x0f;
}
- /* nad only for I-block (0xc0 == 00) */
- if ((th->flags & TCL_HANDLE_F_NAD_USED) &&
- ((pcb & 0xc0) == 0x00)) {
+ /* nad only for I-block */
+ if ((th->flags & TCL_HANDLE_F_NAD_USED) && is_i_block(pcb)) {
/* ISO 14443-4:2000(E) Section 7.1.1.3 */
/* FIXME: in case of chaining only for first frame */
*prlg |= TCL_PCB_NAD_FOLLOWING;