From: Seonah Moon Date: Fri, 17 Jun 2016 01:46:18 +0000 (+0900) Subject: Check tethering feature when tethering_wifi_remove_blocked_mac_list is called X-Git-Tag: accepted/tizen/common/20160617.121924^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F75153%2F2;p=platform%2Fcore%2Fapi%2Ftethering.git Check tethering feature when tethering_wifi_remove_blocked_mac_list is called Change-Id: Ib10657c8de46354a34cc20cb7a6a31f9ed40f1b3 Signed-off-by: Seonah Moon --- diff --git a/packaging/capi-network-tethering.spec b/packaging/capi-network-tethering.spec index dca3201..82c09d3 100644 --- a/packaging/capi-network-tethering.spec +++ b/packaging/capi-network-tethering.spec @@ -1,6 +1,6 @@ Name: capi-network-tethering Summary: Tethering Framework -Version: 1.0.38 +Version: 1.0.39 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/tethering.c b/src/tethering.c index 93f1f58..627c970 100755 --- a/src/tethering.c +++ b/src/tethering.c @@ -3182,6 +3182,7 @@ API int tethering_wifi_add_blocked_mac_list(tethering_h tethering, const char *m API int tethering_wifi_remove_blocked_mac_list(tethering_h tethering, const char *mac) { + CHECK_FEATURE_SUPPORTED(TETHERING_FEATURE, TETHERING_WIFI_FEATURE); _retvm_if(tethering == NULL, TETHERING_ERROR_INVALID_PARAMETER, "parameter(tethering) is NULL\n"); _retvm_if(mac == NULL, TETHERING_ERROR_INVALID_PARAMETER,