Modify how to get mac address for wifi 25/47025/1 accepted/tizen/mobile/20150829.030019 accepted/tizen/tv/20150829.030823 accepted/tizen/wearable/20150829.031401 submit/tizen/20150828.080306
authorhyunuktak <hyunuk.tak@samsung.com>
Fri, 28 Aug 2015 07:45:06 +0000 (16:45 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Fri, 28 Aug 2015 07:45:22 +0000 (16:45 +0900)
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Change-Id: Ibab120b6b74bcd252401182d3a6c89bb96972fb3

packaging/capi-network-connection.spec
src/connection.c

index 2f1a080..ab823cc 100644 (file)
@@ -1,6 +1,6 @@
 Name:          capi-network-connection
 Summary:       Network Connection library in TIZEN C API
-Version:       1.0.71
+Version:       1.0.72
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index da5e609..ce5421c 100755 (executable)
@@ -543,7 +543,6 @@ EXPORT_API int connection_get_mac_address(connection_h connection, connection_ty
 
        switch (type) {
        case CONNECTION_TYPE_WIFI:
-#if defined TIZEN_TV
                fp = fopen(WIFI_MAC_INFO_FILE, "r");
                if (fp == NULL) {
                        CONNECTION_LOG(CONNECTION_ERROR, "Failed to open file %s", WIFI_MAC_INFO_FILE);
@@ -566,14 +565,6 @@ EXPORT_API int connection_get_mac_address(connection_h connection, connection_ty
                }
                g_strlcpy(*mac_addr, buf, CONNECTION_MAC_INFO_LENGTH + 1);
                fclose(fp);
-#else
-               *mac_addr = vconf_get_str(VCONFKEY_WIFI_BSSID_ADDRESS);
-
-               if(*mac_addr == NULL) {
-                       CONNECTION_LOG(CONNECTION_ERROR, "Failed to get vconf from %s", VCONFKEY_WIFI_BSSID_ADDRESS);
-                       return CONNECTION_ERROR_OPERATION_FAILED;
-               }
-#endif
                break;
        case CONNECTION_TYPE_ETHERNET:
                fp = fopen(ETHERNET_MAC_INFO_FILE, "r");