summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSunil Jogi <sunil.jogi@nxp.com>2011-08-23 21:08:20 -0700
committerMartijn Coenen <maco@google.com>2011-08-24 10:43:49 -0700
commite13ca0d66e4682aafb2c031b45a953b1aa153a4b (patch)
treefcd7e390bc19002c4c583f7f67a6a6a4f0a5f766 /src
parent5b80cbbaa1169bd26bb0a19a2b75fd9e6522a1af (diff)
downloadexternal_libnfc-nxp-e13ca0d66e4682aafb2c031b45a953b1aa153a4b.zip
external_libnfc-nxp-e13ca0d66e4682aafb2c031b45a953b1aa153a4b.tar.gz
external_libnfc-nxp-e13ca0d66e4682aafb2c031b45a953b1aa153a4b.tar.bz2
Fix for removing unnecessary DESELECT before P2P activation in case
devices are moving in to the range and moving out of the range quickly Change-Id: I090367ad17de443c6af41c9ad507557e3eaaf7f9
Diffstat (limited to 'src')
-rw-r--r--src/phLibNfc_initiator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/phLibNfc_initiator.c b/src/phLibNfc_initiator.c
index 2a03c05..0f71606 100644
--- a/src/phLibNfc_initiator.c
+++ b/src/phLibNfc_initiator.c
@@ -133,6 +133,10 @@ void phLibNfc_NotificationRegister_Resp_Cb (
{
Status = NFCSTATUS_FAILED;
}
+ else if (PHNFCSTATUS(status) == NFCSTATUS_DESELECTED)
+ {
+ return;
+ }
else
{
DeviceIndx=0;DeviceIndx1=0;