From: taesub kim Date: Mon, 16 Oct 2017 00:05:14 +0000 (+0900) Subject: Modified the feature check for metered network api X-Git-Tag: accepted/tizen/unified/20171016.064629^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=9df17354cc02e9c062ba270b0e9070f7654a48e9;p=platform%2Fcore%2Fapi%2Fconnection.git Modified the feature check for metered network api Change-Id: If292d3fdcaf24cda68a59954e75f727e96a26041 Signed-off-by: Taesub Kim --- diff --git a/packaging/capi-network-connection.spec b/packaging/capi-network-connection.spec index a450a75..a3e91e1 100755 --- a/packaging/capi-network-connection.spec +++ b/packaging/capi-network-connection.spec @@ -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 diff --git a/src/connection.c b/src/connection.c index 2b74071..9c09e55 100755 --- a/src/connection.c +++ b/src/connection.c @@ -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");