Tag-mismatch in rw_t4t_data_cback
Bug: 191444150
Test: ok
Change-Id: Ia7ade93ba5818bb5bdbcc8e8c57499dda07c9b42
(cherry picked from commit 00e61a978be77d07c94175bbb6ebb4b78ac6526a)
diff --git a/src/nfc/tags/rw_t4t.cc b/src/nfc/tags/rw_t4t.cc
index 54ede5d..e5d3ef2 100644
--- a/src/nfc/tags/rw_t4t.cc
+++ b/src/nfc/tags/rw_t4t.cc
@@ -1547,7 +1547,7 @@
uint32_t nlen;
uint32_t cc_file_offset = 0x00;
uint16_t status_words;
- uint8_t cc_file_rsp_len = 0;
+ uint8_t cc_file_rsp_len = T4T_CC_FILE_MIN_LEN;
tRW_DATA rw_data;
DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf(
@@ -1595,7 +1595,6 @@
/* CC file has been selected then read mandatory part of CC file */
cc_file_offset = 0x00;
- cc_file_rsp_len = T4T_CC_FILE_MIN_LEN;
if (!rw_t4t_read_file(cc_file_offset, cc_file_rsp_len, false)) {
rw_t4t_handle_error(NFC_STATUS_FAILED, 0, 0);
} else {