Modified enumeration of cellular PDN type
[platform/core/api/connection.git] / src / connection_profile.c
index 236e9af..7504c52 100755 (executable)
@@ -1789,6 +1789,11 @@ EXPORT_API int connection_profile_set_cellular_pdn_type(connection_profile_h pro
                break;
        case CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6:
                profile_info->ProfileInfo.Pdp.PdnType = NET_PDN_TYPE_IPV4_IPV6;
+               CONNECTION_LOG(CONNECTION_WARN, "DEPRECATION WARNINIG: CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6 " \
+                                               "from next release. Use CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6 instead");
+               break;
+       case CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6:
+               profile_info->ProfileInfo.Pdp.PdnType = NET_PDN_TYPE_IPV4_IPV6;
                break;
        default:
                return CONNECTION_ERROR_INVALID_PARAMETER;
@@ -1824,6 +1829,11 @@ EXPORT_API int connection_profile_set_cellular_roam_pdn_type(connection_profile_
                break;
        case CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6:
                profile_info->ProfileInfo.Pdp.RoamPdnType = NET_PDN_TYPE_IPV4_IPV6;
+               CONNECTION_LOG(CONNECTION_WARN, "DEPRECATION WARNINIG: CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6 " \
+                                               "from next release. Use CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6 instead");
+               break
+       case CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6:
+               profile_info->ProfileInfo.Pdp.RoamPdnType = NET_PDN_TYPE_IPV4_IPV6;
                break;
        default:
                return CONNECTION_ERROR_INVALID_PARAMETER;