summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJizhou Liao <Jizhou.Liao@nxp.com>2015-08-11 23:33:29 -0700
committerMartijn Coenen <maco@google.com>2015-08-18 13:15:24 +0200
commitef4a29a0b35d6979efcbb1d62c33395a10c2d411 (patch)
treeebe8702deceb258732f875e3f770fd3812f7b9c0
parent687512f08bd0779607e5d130181fab58cfc4c66b (diff)
downloadlibnfc-nci-ef4a29a0b35d6979efcbb1d62c33395a10c2d411.tar.gz
Fix ISO15693 tag crash issue
Set error flag to indicate there is an error on ISO15693 transaction. Change-Id: I5bb5d8449d095c98055d990867da945786d9254f
-rw-r--r--halimpl/pn54x/hal/phNxpNciHal_ext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/halimpl/pn54x/hal/phNxpNciHal_ext.c b/halimpl/pn54x/hal/phNxpNciHal_ext.c
index 438da55..ca3f4cb 100644
--- a/halimpl/pn54x/hal/phNxpNciHal_ext.c
+++ b/halimpl/pn54x/hal/phNxpNciHal_ext.c
@@ -303,6 +303,10 @@ NFCSTATUS phNxpNciHal_process_ext_rsp (uint8_t *p_ntf, uint16_t *p_len)
p_ntf[2]--;
(*p_len)--;
}
+ else
+ {
+ p_ntf[p_ntf[2]+ 2] |= 0x01;
+ }
}
else if (p_ntf[2] == 0x02 &&
p_ntf[1] == 0x00 && icode_detected == 1)