net_profile_info_t profile_info_local;
net_profile_info_t *profile_info = profile;
- rv = net_get_profile_info(profile_info->ProfileName, &profile_info_local);
+ rv = net_get_profile_info(NULL, profile_info->ProfileName, &profile_info_local);
if (rv == NET_ERR_ACCESS_DENIED) {
CONNECTION_LOG(CONNECTION_ERROR, "Access denied"); //LCOV_EXCL_LINE
return CONNECTION_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
} 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);
}
}
{
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)) {
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;
}