Fix the return value unit for wifi max speed
[platform/core/api/connection.git] / src / connection_profile.c
index b2e95c6..2bbecb2 100755 (executable)
@@ -1157,7 +1157,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;
+       *max_speed = (int)profile_info->ProfileInfo.Wlan.max_rate / 1000000;
 
        return CONNECTION_ERROR_NONE;
 }