Modified the feature check for metered network api 04/155604/1 accepted/tizen/unified/20171016.064629 submit/tizen/20171016.003519
authortaesub kim <taesub.kim@samsung.com>
Mon, 16 Oct 2017 00:05:14 +0000 (09:05 +0900)
committertaesub kim <taesub.kim@samsung.com>
Mon, 16 Oct 2017 00:05:18 +0000 (09:05 +0900)
Change-Id: If292d3fdcaf24cda68a59954e75f727e96a26041
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
packaging/capi-network-connection.spec
src/connection.c

index a450a75..a3e91e1 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-connection
 Summary:       Network Connection library in TIZEN C API
-Version:       1.0.104
+Version:       1.0.105
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index 2b74071..9c09e55 100755 (executable)
@@ -669,7 +669,7 @@ EXPORT_API int connection_get_mac_address(connection_h connection, connection_ty
 
 EXPORT_API int connection_is_metered_network(connection_h connection, bool* is_metered)
 {
-       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE, TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
        if (is_metered == NULL || !(__connection_check_handle_validity(connection))) {
                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");