Remove "Not supported" logic for module state function 51/184151/1 submit/tizen/20180716.045511
authortaesub.kim <taesub.kim@samsung.com>
Mon, 16 Jul 2018 04:03:06 +0000 (13:03 +0900)
committertaesub.kim <taesub.kim@samsung.com>
Mon, 16 Jul 2018 04:03:35 +0000 (13:03 +0900)
Change-Id: I0eb9baa7b8e53925f7f7568d4573bf28a0ea31a0
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
src/wifi_manager.c

index 26ea7bcbb67a376f747648f703dc80b975329e2e..9d34a1b456b57dc8f79452e67a4006f3d096a7e7 100755 (executable)
@@ -1336,11 +1336,6 @@ EXPORT_API int wifi_manager_set_module_state_changed_cb(wifi_manager_h wifi,
 
        CHECK_FEATURE_SUPPORTED(WIFI_FEATURE);
 
-       if (_get_tizen_profile() != TIZEN_PROFILE_TV) {
-               __NETWORK_CAPI_FUNC_EXIT__;
-               return WIFI_MANAGER_ERROR_NOT_SUPPORTED;
-       }
-
        if (callback == NULL || !(__wifi_check_handle_validity(wifi))) {
                WIFI_LOG(WIFI_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE
                __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE
@@ -1358,11 +1353,6 @@ EXPORT_API int wifi_manager_unset_module_state_changed_cb(wifi_manager_h wifi)
 
        CHECK_FEATURE_SUPPORTED(WIFI_FEATURE);
 
-       if (_get_tizen_profile() != TIZEN_PROFILE_TV) {
-               __NETWORK_CAPI_FUNC_EXIT__;
-               return WIFI_MANAGER_ERROR_NOT_SUPPORTED;
-       }
-
        if (!(__wifi_check_handle_validity(wifi))) {
                WIFI_LOG(WIFI_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE
                __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE
@@ -1380,11 +1370,6 @@ EXPORT_API int wifi_manager_get_module_state(wifi_manager_h wifi,
 
        CHECK_FEATURE_SUPPORTED(WIFI_FEATURE);
 
-       if (_get_tizen_profile() != TIZEN_PROFILE_TV) {
-               __NETWORK_CAPI_FUNC_EXIT__;
-               return WIFI_MANAGER_ERROR_NOT_SUPPORTED;
-       }
-
        if (state == NULL || !(__wifi_check_handle_validity(wifi))) {
                WIFI_LOG(WIFI_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE
                __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE