summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/phHciNfc_CE_A.c4
-rwxr-xr-xsrc/phHciNfc_CE_B.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/phHciNfc_CE_A.c b/src/phHciNfc_CE_A.c
index 8cb1aca..8c7879e 100755
--- a/src/phHciNfc_CE_A.c
+++ b/src/phHciNfc_CE_A.c
@@ -255,6 +255,7 @@ phHciNfc_CE_A_Initialise(
}
default :
{
+ status=NFCSTATUS_FAILED;
break;
}
}
@@ -340,6 +341,7 @@ phHciNfc_CE_A_Release(
}
default :
{
+ status=NFCSTATUS_FAILED;
break;
}
}
@@ -376,7 +378,7 @@ phHciNfc_CE_A_Update_PipeInfo(
/* Update the pipe_id of the card emulation A Gate o
btained from the HCI Response */
ps_ce_a_info->pipe_id = pipeID;
- if (HCI_UNKNOWN_PIPE_ID != pipeID)
+ if (HCI_UNKNOWN_PIPE_ID != pipeID && pipeID>0)
{
ps_ce_a_info->p_pipe_info = pPipeInfo;
if (NULL != pPipeInfo)
diff --git a/src/phHciNfc_CE_B.c b/src/phHciNfc_CE_B.c
index 6583160..aa7a849 100755
--- a/src/phHciNfc_CE_B.c
+++ b/src/phHciNfc_CE_B.c
@@ -252,6 +252,7 @@ phHciNfc_CE_B_Initialise(
}
default :
{
+ status=NFCSTATUS_FAILED;
break;
}
}
@@ -334,6 +335,7 @@ phHciNfc_CE_B_Release(
}
default :
{
+ status=NFCSTATUS_FAILED;
break;
}
}
@@ -442,7 +444,7 @@ phHciNfc_CE_B_Update_PipeInfo(
/* Update the pipe_id of the card emulation A Gate o
btained from the HCI Response */
ps_ce_b_info->pipe_id = pipeID;
- if (HCI_UNKNOWN_PIPE_ID != pipeID)
+ if (HCI_UNKNOWN_PIPE_ID != pipeID && pipeID>0)
{
ps_ce_b_info->p_pipe_info = pPipeInfo;
if (NULL != pPipeInfo)