From 3c0e959ab27c144c20882f8b5d5178541b7b9973 Mon Sep 17 00:00:00 2001 From: Gayathri Date: Thu, 19 Oct 2017 13:31:47 +0530 Subject: [PATCH] Added wdmp error code for CCSP_ERR_METHOD_NOT_SUPPORTED --- src/wdmp-c.h | 3 ++- src/wdmp_internal.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wdmp-c.h b/src/wdmp-c.h index 1df6f3e..2638cd2 100644 --- a/src/wdmp-c.h +++ b/src/wdmp-c.h @@ -78,7 +78,8 @@ typedef enum WDMP_ERR_NOTIFY_IS_NULL, WDMP_ERR_INVALID_WIFI_INDEX, WDMP_ERR_INVALID_RADIO_INDEX, - WDMP_ERR_ATOMIC_GET_SET_FAILED + WDMP_ERR_ATOMIC_GET_SET_FAILED, + WDMP_ERR_METHOD_NOT_SUPPORTED } WDMP_STATUS; typedef struct diff --git a/src/wdmp_internal.c b/src/wdmp_internal.c index 2efe740..34b61d9 100644 --- a/src/wdmp_internal.c +++ b/src/wdmp_internal.c @@ -775,6 +775,10 @@ void wdmp_form_table_response(res_struct *resObj, cJSON *response) { strcpy(result,"Invalid Input parameter - CID/CMC value cannot be set"); } + else if (status == WDMP_ERR_METHOD_NOT_SUPPORTED) + { + strcpy(result,"Method is not supported"); + } else { strcpy(result,"Unknown Error");