summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--inc/phNfcConfig.h5
-rw-r--r--src/phHciNfc_Emulation.c2
-rw-r--r--src/phHciNfc_RFReader.c2
-rw-r--r--src/phHciNfc_Sequence.c4
4 files changed, 7 insertions, 6 deletions
diff --git a/inc/phNfcConfig.h b/inc/phNfcConfig.h
index a346b8c..3f5a108 100644
--- a/inc/phNfcConfig.h
+++ b/inc/phNfcConfig.h
@@ -141,7 +141,7 @@
/**< Default Session ID for Initialisation */
#ifndef DEFAULT_SESSION
-#define DEFAULT_SESSION "android5"
+#define DEFAULT_SESSION "android6"
#endif
@@ -323,7 +323,8 @@
/**< Macro to Enable the Peer to Peer Feature */
#define ENABLE_P2P
-#define DEFAULT_NFCIP_MODE_SUPPORT 0x0FU
+#define DEFAULT_NFCIP_INITIATOR_MODE_SUPPORT 0x0FU
+#define DEFAULT_NFCIP_TARGET_MODE_SUPPORT 0x0EU
/**< Macro to Enable the ISO14443-B Feature */
#define TYPE_B
diff --git a/src/phHciNfc_Emulation.c b/src/phHciNfc_Emulation.c
index e01c540..5309f3a 100644
--- a/src/phHciNfc_Emulation.c
+++ b/src/phHciNfc_Emulation.c
@@ -453,7 +453,7 @@ phHciNfc_EmuMgmt_Initialise(
#define NFCIP_ACTIVE_SHIFT 0x03U
#define NFCIP_PASSIVE_MASK 0x07U
uint8_t mode = ( NXP_NFCIP_ACTIVE_DEFAULT << NFCIP_ACTIVE_SHIFT ) |
- ( DEFAULT_NFCIP_MODE_SUPPORT & NFCIP_PASSIVE_MASK );
+ ( DEFAULT_NFCIP_TARGET_MODE_SUPPORT & NFCIP_PASSIVE_MASK );
status = phHciNfc_NfcIP_SetMode( psHciContext, pHwRef,
NFCIP_TARGET, mode);
if(status == NFCSTATUS_PENDING )
diff --git a/src/phHciNfc_RFReader.c b/src/phHciNfc_RFReader.c
index 1ecba87..919f3fd 100644
--- a/src/phHciNfc_RFReader.c
+++ b/src/phHciNfc_RFReader.c
@@ -593,7 +593,7 @@ phHciNfc_ReaderMgmt_Initialise(
}
case NFCIP1_INITIATOR_MODE_CONFIG:
{
- uint8_t mode = DEFAULT_NFCIP_MODE_SUPPORT;
+ uint8_t mode = DEFAULT_NFCIP_INITIATOR_MODE_SUPPORT;
status = phHciNfc_NfcIP_SetMode( psHciContext, pHwRef,
NFCIP_INITIATOR, mode);
if(status == NFCSTATUS_PENDING )
diff --git a/src/phHciNfc_Sequence.c b/src/phHciNfc_Sequence.c
index 07a702a..13b8ad5 100644
--- a/src/phHciNfc_Sequence.c
+++ b/src/phHciNfc_Sequence.c
@@ -1587,7 +1587,7 @@ phHciNfc_PollLoop_Sequence(
#define NFCIP_ACTIVE_SHIFT 0x03U
#define NFCIP_PASSIVE_MASK 0x07U
uint8_t mode = ( NXP_NFCIP_ACTIVE_DEFAULT << NFCIP_ACTIVE_SHIFT ) |
- ( DEFAULT_NFCIP_MODE_SUPPORT & NFCIP_PASSIVE_MASK );
+ ( DEFAULT_NFCIP_TARGET_MODE_SUPPORT & NFCIP_PASSIVE_MASK );
status =
phHciNfc_NfcIP_SetMode( psHciContext, pHwRef, NFCIP_TARGET,
(uint8_t) mode );
@@ -1610,7 +1610,7 @@ phHciNfc_PollLoop_Sequence(
{
status =
phHciNfc_NfcIP_SetMode( psHciContext, pHwRef, NFCIP_INITIATOR,
- (uint8_t) (speed & DEFAULT_NFCIP_MODE_SUPPORT));
+ (uint8_t) (speed & DEFAULT_NFCIP_INITIATOR_MODE_SUPPORT));
if(NFCSTATUS_PENDING == status)
{
#if defined (NFCIP_TGT_DISABLE_CFG)