summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/phHciNfc_Sequence.c2
-rw-r--r--src/phLibNfc_discovery.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/phHciNfc_Sequence.c b/src/phHciNfc_Sequence.c
index 1ef7265..6d0bf13 100644
--- a/src/phHciNfc_Sequence.c
+++ b/src/phHciNfc_Sequence.c
@@ -456,7 +456,7 @@ phHciNfc_FSM_Validate(
} /* End of State Validation Switch */
if( NFC_FSM_IN_PROGRESS == psHciContext->hci_state.transition )
{
- status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_INVALID_STATE);
+ status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_BUSY);
}
break;
}
diff --git a/src/phLibNfc_discovery.c b/src/phLibNfc_discovery.c
index 1fe4d8f..c512f73 100644
--- a/src/phLibNfc_discovery.c
+++ b/src/phLibNfc_discovery.c
@@ -194,7 +194,14 @@ NFCSTATUS phLibNfc_Mgt_ConfigureDiscovery (
}
else
{
- RetVal=NFCSTATUS_FAILED;
+ if (PHNFCSTATUS(RetVal) == NFCSTATUS_BUSY)
+ {
+ RetVal = NFCSTATUS_BUSY;
+ }
+ else
+ {
+ RetVal=NFCSTATUS_FAILED;
+ }
}
}