summaryrefslogtreecommitdiffstats
path: root/src/phLibNfc_Ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/phLibNfc_Ioctl.c')
-rw-r--r--src/phLibNfc_Ioctl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/phLibNfc_Ioctl.c b/src/phLibNfc_Ioctl.c
index 9983c60..08f34b5 100644
--- a/src/phLibNfc_Ioctl.c
+++ b/src/phLibNfc_Ioctl.c
@@ -238,8 +238,11 @@ STATIC void phLibNfc_Ioctl_Mgmt_CB(void *context,
NFCSTATUS status )
{
phLibNfc_Ioctl_Cntx_t *pIoctlCntx=NULL;
-
- if(PHNFCSTATUS(status)!=NFCSTATUS_SUCCESS)
+ if(PHNFCSTATUS(status) == NFCSTATUS_FEATURE_NOT_SUPPORTED)
+ {
+ status = NFCSTATUS_FEATURE_NOT_SUPPORTED;
+ }
+ else if(PHNFCSTATUS(status)!=NFCSTATUS_SUCCESS)
{
status = NFCSTATUS_FAILED;
}