Get max speed of connected AP
[platform/core/api/connection.git] / src / connection_profile.c
index 6cbb3a2..586c901 100755 (executable)
@@ -587,7 +587,7 @@ EXPORT_API int connection_profile_get_ip_address(connection_profile_h profile,
        } else {
                if (net_get_preferred_ipv6_address(net_info->ProfileName, ip_address) != NET_ERR_NONE) {
                        CONNECTION_LOG(CONNECTION_ERROR, "Failed to get preferred ipv6 address");
-                       *ip_address = __profile_convert_ip_to_string(&net_info->IpAddr,
+                       *ip_address = __profile_convert_ip_to_string(&net_info->IpAddr6,
                                        address_family);
                }
        }
@@ -1105,7 +1105,7 @@ EXPORT_API int connection_profile_set_proxy_address(connection_profile_h profile
 {
        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE, TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-       CONNECTION_LOG(CONNECTION_ERROR, "Address Family: ", address_family);
+       CONNECTION_LOG(CONNECTION_ERROR, "Address Family: %d", address_family);
        if (!(_connection_libnet_check_profile_validity(profile)) ||
            (address_family != CONNECTION_ADDRESS_FAMILY_IPV4 &&
             address_family != CONNECTION_ADDRESS_FAMILY_IPV6)) {
@@ -1273,7 +1273,7 @@ EXPORT_API int connection_profile_get_wifi_max_speed(connection_profile_h profil
        if (profile_info->profile_type != NET_DEVICE_WIFI)
                return CONNECTION_ERROR_INVALID_PARAMETER;
 
-       *max_speed = (int)profile_info->ProfileInfo.Wlan.max_rate / 1000000;
+       *max_speed = profile_info->ProfileInfo.Wlan.max_rate;
 
        return CONNECTION_ERROR_NONE;
 }