api,bearer: new 'access-type-preference' setting

In 5G capable devices, which can support multiple types of access
types (either 3GPP or non-3GPP), the UE may request to use a 3GPP
access type exclusively, prefer a 3GPP access type, or just report no
preference.

When supported, this field may also be part of the settings that can
be stored as part of a profile.
This commit is contained in:
Aleksander Morgado
2021-11-02 11:17:06 +01:00
parent 93709f8dc2
commit 339b51652a
4 changed files with 31 additions and 0 deletions

View File

@@ -1821,4 +1821,23 @@ typedef enum { /*< underscore_name=mm_modem_3gpp_drx_cycle >*/
MM_MODEM_3GPP_DRX_CYCLE_256 = 5,
} MMModem3gppDrxCycle;
/**
* MMBearerAccessTypePreference:
* @MM_BEARER_ACCESS_TYPE_PREFERENCE_NONE: No access type preference, or unknown.
* @MM_BEARER_ACCESS_TYPE_PREFERENCE_3GPP_ONLY: 3GPP access type only.
* @MM_BEARER_ACCESS_TYPE_PREFERENCE_3GPP_PREFERRED: All access types allowed but 3GPP preferred.
* @MM_BEARER_ACCESS_TYPE_PREFERENCE_NON_3GPP_ONLY: Non-3GPP access type only.
*
* 5G network access type preference, such as 3GPP (NR, E-UTRA) or
* non-3GPP (untrusted WiFi, trusted WiFi, wireline).
*
* Since: 1.20
*/
typedef enum { /*< underscore_name=mm_bearer_access_type_preference >*/
MM_BEARER_ACCESS_TYPE_PREFERENCE_NONE = 0,
MM_BEARER_ACCESS_TYPE_PREFERENCE_3GPP_ONLY = 1,
MM_BEARER_ACCESS_TYPE_PREFERENCE_3GPP_PREFERRED = 2,
MM_BEARER_ACCESS_TYPE_PREFERENCE_NON_3GPP_ONLY = 3,
} MMBearerAccessTypePreference;
#endif /* _MODEMMANAGER_ENUMS_H_ */