Fix model config checking logic 50/156950/1 accepted/tizen/unified/20171026.074626 submit/tizen/20171023.024527
authorJiung <jiung.yu@samsung.com>
Mon, 23 Oct 2017 02:04:25 +0000 (11:04 +0900)
committerJiung <jiung.yu@samsung.com>
Mon, 23 Oct 2017 02:04:25 +0000 (11:04 +0900)
Change-Id: I29cb28c9c69d31b8d8b5bccf12b26e331fedb256

packaging/capi-network-asp.spec
src/include/asp-util.h

index bcbc0ae..904609b 100755 (executable)
@@ -2,7 +2,7 @@
 
 Name:       capi-network-asp
 Summary:    An Application Service Platform(ASP) libraries in Native API
-Version:    0.0.21
+Version:    0.0.22
 Release:    1
 Group:      Network & Connectivity/API
 License:    Apache-2.0
index e5dd6ff..a7d22fe 100755 (executable)
 #define IPSTR_LEN 16
 #define WPS_PIN_LEN 8
 
-#define TIZEN_FEATURE_P2PS "tizen.org/feature/network.asp"
+#define TIZEN_FEATURE_ASP "tizen.org/feature/network.asp"
 
-#if 0
 #define CHECK_FEATURE_SUPPORTED(feature_name)\
        do {\
                bool feature_supported = FALSE;\
                if (!system_info_get_platform_bool(feature_name, &feature_supported)) {\
                        if (feature_supported == FALSE) {\
                                LOGE("%s feature is disabled", feature_name);\
-                               return P2PS_ERROR_NOT_SUPPORTED;\
+                               return ASP_ERROR_NOT_SUPPORTED;\
                        } \
                } else {\
                        LOGE("Error - Feature getting from System Info");\
-                       return P2PS_ERROR_OPERATION_FAILED;\
+                       return ASP_ERROR_OPERATION_FAILED;\
                } \
        } while (0)
 
-#else
-#define CHECK_FEATURE_SUPPORTED(feature_name)
-#endif
-
 #endif /** __ASP_UTIL_H__ */