summaryrefslogtreecommitdiff
path: root/nci/jni
diff options
context:
space:
mode:
authorAlexandra Ducati-Manas <alexandra.ducati-manas@st.com>2024-04-18 16:37:49 +0200
committerAlexandra Ducati-Manas <alexandra.ducati-manas@st.com>2024-04-24 11:56:51 +0000
commitbc5a249007e4d2a671c9cf00377a984e7c5aa5d1 (patch)
treeaa9cab3071d1326dbb4303ddd0555a3cc1d9b0ca /nci/jni
parent2c2e53709d691d460757e563d22a13e904741b11 (diff)
downloadNfc-bc5a249007e4d2a671c9cf00377a984e7c5aa5d1.tar.gz
Code cleanup: removed disconnection of P2P target mode when tag disconnected
Bug: 335639730 Change-Id: I79470c3f463db5a926d275705ecc3be2e3dfa7e3
Diffstat (limited to 'nci/jni')
-rw-r--r--nci/jni/NativeNfcManager.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/nci/jni/NativeNfcManager.cpp b/nci/jni/NativeNfcManager.cpp
index 352f8cdf..118b978d 100644
--- a/nci/jni/NativeNfcManager.cpp
+++ b/nci/jni/NativeNfcManager.cpp
@@ -1324,11 +1324,8 @@ static void nfcManager_enableDiscovery(JNIEnv* e, jobject o,
stopPolling_rfDiscoveryDisabled();
startPolling_rfDiscoveryDisabled(tech_mask);
- // Start P2P listening if tag polling was enabled
if (sPollingEnabled) {
- LOG(DEBUG) << StringPrintf("%s: Enable p2pListening", __func__);
-
- if (reader_mode && !sReaderModeEnabled) {
+ if (reader_mode && !sReaderModeEnabled) {
sReaderModeEnabled = true;
NFA_DisableListening();