Fixed wrong parameter for checking feature 92/74992/1
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 16 Jun 2016 08:22:58 +0000 (17:22 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 16 Jun 2016 08:23:13 +0000 (17:23 +0900)
Change-Id: I255ccd5f49e6a3ffed959878dde0a5f774ab568c
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/capi-network-tethering.spec
src/tethering_private.c

index 4be421f..dca3201 100644 (file)
@@ -1,6 +1,6 @@
 Name:          capi-network-tethering
 Summary:       Tethering Framework
-Version:       1.0.37
+Version:       1.0.38
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index 921e330..5bacc30 100755 (executable)
@@ -32,7 +32,7 @@ bool __check_feature_supported(const char *key, tethering_supported_feature_e fe
                        //LCOV_EXCL_STOP
                }
 
-               feature_supported[feature] = true;
+               is_feature_checked[feature] = true;
        }
        return feature_supported[feature];
 }
@@ -46,15 +46,16 @@ int _tethering_check_feature_supported(const char* feature, ...)
 
        va_start(list, feature);
        key = feature;
+
        while (1) {
                if ((strcmp(key, TETHERING_FEATURE) == 0))
                        value = __check_feature_supported(key, TETHERING_SUPPORTED_FEATURE);
                if ((strcmp(key, TETHERING_WIFI_FEATURE) == 0))
-                       value = __check_feature_supported(key, TETHERING_SUPPORTED_FEATURE);
+                       value = __check_feature_supported(key, TETHERING_SUPPORTED_FEATURE_WIFI);
                if ((strcmp(key, TETHERING_BT_FEATURE) == 0))
-                       value = __check_feature_supported(key, TETHERING_SUPPORTED_FEATURE);
+                       value = __check_feature_supported(key, TETHERING_SUPPORTED_FEATURE_BT);
                if ((strcmp(key, TETHERING_USB_FEATURE) == 0))
-                       value = __check_feature_supported(key, TETHERING_SUPPORTED_FEATURE);
+                       value = __check_feature_supported(key, TETHERING_SUPPORTED_FEATURE_USB);
 
                supported |= value;
                key = va_arg(list, const char *);