iso14443: fix the order of the ATS bytes

TL and T0 are followed by TA(1), TB(1) and TC(1), in this order

Change-Id: I356da8bb475d55f36e5b9ff02d35fcf35c457223
Reviewed-on: https://code.wireshark.org/review/13961
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
This commit is contained in:
Martin Kaiser 2016-02-15 21:51:16 +01:00
parent 338a0c74e3
commit 076784cdae
1 changed files with 4 additions and 4 deletions

View File

@ -604,8 +604,8 @@ static int dissect_iso14443_ats(tvbuff_t *tvb, gint offset,
}
offset++;
}
if (t0 & HAVE_TC1) {
proto_tree_add_item(tree, hf_iso14443_tc1,
if (t0 & HAVE_TA1) {
proto_tree_add_item(tree, hf_iso14443_ta1,
tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
}
@ -618,8 +618,8 @@ static int dissect_iso14443_ats(tvbuff_t *tvb, gint offset,
tvb, offset*8, 4, fwi, "%d", fwi);
offset++;
}
if (t0 & HAVE_TA1) {
proto_tree_add_item(tree, hf_iso14443_ta1,
if (t0 & HAVE_TC1) {
proto_tree_add_item(tree, hf_iso14443_tc1,
tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
}