enum, bearer: added non-ip bearer

This commit is contained in:
Alexey Orishko
2022-09-16 10:52:56 +00:00
committed by Aleksander Morgado
parent 664610819e
commit 4ab2c80858
3 changed files with 9 additions and 2 deletions
+1
View File
@@ -1665,6 +1665,7 @@ mm_bearer_ip_family_to_qmi_pdp_type (MMBearerIpFamily ip_family,
case MM_BEARER_IP_FAMILY_IPV4V6:
*out_pdp_type = QMI_WDS_PDP_TYPE_IPV4_OR_IPV6;
return TRUE;
case MM_BEARER_IP_FAMILY_NON_IP:
case MM_BEARER_IP_FAMILY_NONE:
case MM_BEARER_IP_FAMILY_ANY:
default:
+4
View File
@@ -4067,6 +4067,8 @@ mm_3gpp_get_pdp_type_from_ip_family (MMBearerIpFamily family)
return "IPV6";
case MM_BEARER_IP_FAMILY_IPV4V6:
return "IPV4V6";
case MM_BEARER_IP_FAMILY_NON_IP:
return "Non-IP";
case MM_BEARER_IP_FAMILY_NONE:
case MM_BEARER_IP_FAMILY_ANY:
default:
@@ -4087,6 +4089,8 @@ mm_3gpp_get_ip_family_from_pdp_type (const gchar *pdp_type)
return MM_BEARER_IP_FAMILY_IPV6;
if (g_str_equal (pdp_type, "IPV4V6"))
return MM_BEARER_IP_FAMILY_IPV4V6;
if (g_str_equal (pdp_type, "Non-IP"))
return MM_BEARER_IP_FAMILY_NON_IP;
return MM_BEARER_IP_FAMILY_NONE;
}