Revert "Add deselect when performing sleep/wakeup pres check for T2T"
This reverts commit bfe819ecbec28437025270e2586abd7181c90068.
Reason for revert: Unnecessary because of aosp/3255003 and is causing issues.
Bug: 374687433
Bug: 353758408
Change-Id: Ie04ff4069766c29b63235b9ca9af4ceab93aceec
Test: N/A
diff --git a/src/nfa/rw/nfa_rw_act.cc b/src/nfa/rw/nfa_rw_act.cc
index bbb7662..4fa3120 100644
--- a/src/nfa/rw/nfa_rw_act.cc
+++ b/src/nfa/rw/nfa_rw_act.cc
@@ -1897,10 +1897,6 @@
bool unsupported = false;
uint8_t option = NFA_RW_OPTION_INVALID;
tNFA_RW_PRES_CHK_OPTION op_param = NFA_RW_PRES_CHK_DEFAULT;
- uint8_t data_slp_req[] = {0x50, 0x00};
- NFC_HDR* p_msg;
- uint16_t size;
- uint8_t* p;
if (NFC_PROTOCOL_T1T == protocol) {
/* Type1Tag - NFC-A */
@@ -1963,24 +1959,6 @@
} else {
/* Let DM perform presence check (by putting tag to sleep and then waking
* it up) */
- // Need to send DESELECT before putting the T2T tag to sleep
- if (NFC_PROTOCOL_T2T == protocol) {
- size = NFC_HDR_SIZE + NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE +
- sizeof(data_slp_req);
-
- p_msg = (NFC_HDR*)GKI_getbuf(size);
- if (p_msg != nullptr) {
- p_msg->layer_specific = 0;
- p_msg->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE;
- p_msg->len = sizeof(data_slp_req);
-
- p = (uint8_t*)(p_msg + 1) + p_msg->offset;
- memcpy(p, data_slp_req, sizeof(data_slp_req));
-
- NFC_SendData(NFC_RF_CONN_ID, p_msg);
- usleep(4000);
- }
- }
status = nfa_dm_disc_sleep_wakeup();
}
}