From a21233c7abde5572bc40494d1cb9b38976bf8f1c Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 22 Mar 2021 15:07:26 +0100 Subject: api: define bearer settings only in the 'Properties' property Avoid defining them multiple times in the Modem.CreateBearer(), Simple.Connect() and Modem3gpp.SetInitialEpsBearerSettings() methods. --- .../org.freedesktop.ModemManager1.Bearer.xml | 90 +++++++++++++++++++++- ...g.freedesktop.ModemManager1.Modem.Modem3gpp.xml | 18 ++--- .../org.freedesktop.ModemManager1.Modem.Simple.xml | 78 ++++--------------- .../org.freedesktop.ModemManager1.Modem.xml | 27 +------ 4 files changed, 109 insertions(+), 104 deletions(-) (limited to 'introspection') diff --git a/introspection/org.freedesktop.ModemManager1.Bearer.xml b/introspection/org.freedesktop.ModemManager1.Bearer.xml index 94332215..d76f8a0c 100644 --- a/introspection/org.freedesktop.ModemManager1.Bearer.xml +++ b/introspection/org.freedesktop.ModemManager1.Bearer.xml @@ -340,7 +340,95 @@ diff --git a/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml b/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml index e741ae91..c2ef8b02 100644 --- a/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml +++ b/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml @@ -106,19 +106,11 @@ Updates the default settings to be used in the initial default EPS bearer when registering to the LTE network. - Allowed properties are: - - "apn" - Access Point Name, given as a string value (signature "s"). - "ip-type" - Addressing type, given as a MMBearerIpFamily value (signature "u"). - "allowed-auth" - The authentication method to use, given as a MMBearerAllowedAuth value (signature "u"). - "user" - User name (if any) required by the network, given as a string value (signature "s"). - "password" - Password (if any) required by the network, given as a string value (signature "s"). - + The allowed properties in this method are all the 3GPP-specific ones specified + in the bearer properties; + i.e.: "apn", "ip-type", + "allowed-auth", "user", and + "password". --> diff --git a/introspection/org.freedesktop.ModemManager1.Modem.Simple.xml b/introspection/org.freedesktop.ModemManager1.Modem.Simple.xml index e40c6b0c..78f108dc 100644 --- a/introspection/org.freedesktop.ModemManager1.Modem.Simple.xml +++ b/introspection/org.freedesktop.ModemManager1.Modem.Simple.xml @@ -39,16 +39,20 @@ This call may make a large number of changes to modem configuration based on properties passed in. For example, given a PIN-locked, disabled - GSM/UMTS modem, this call may unlock the SIM PIN, alter the access - technology preference, wait for network registration (or force - registration to a specific provider), create a new packet data bearer - using the given "apn", and connect that bearer. + GSM/UMTS modem, this call may unlock the SIM PIN, wait for network + registration (or force registration to a specific provider), create a + new packet data bearer using the given "apn", and connect that bearer. + + The list of allowed properties includes all the ones defined in the + bearer properties + plus these additional ones that are only applicable to this method, + and only to 3GPP (GSM/UMTS/LTE/5GNR) devices: - Allowed key/value pairs in @properties are: "pin" - SIM-PIN unlock code, given as a string value (signature "s"). + SIM-PIN unlock code, given as a string value (signature + "s"). "operator-id" @@ -57,66 +61,10 @@ given as a string value (signature "s"). - "apn" - - For GSM/UMTS and LTE devices the APN to use, - given as a string value (signature "s"). - - - "ip-type" - - For GSM/UMTS and LTE devices the IP addressing type to use, - given as a MMBearerIpFamily - value (signature "u"). - - - "allowed-auth" - - The authentication method to use, given as a - MMBearerAllowedAuth - value (signature "u"). Optional in 3GPP. - - - "user" - - User name (if any) required by the network, given as a string - value (signature "s"). Optional in 3GPP. - - - "password" - - Password (if any) required by the network, given as a string value - (signature "s"). Optional in 3GPP. - - - "number" - - Number to dial for the data connection, - given as a string value (signature "s"). - Deprecated since version 1.10.0. - - - "allow-roaming" - - %FALSE to allow only connections to home networks, - given as a boolean value (signature "b"). - - - "rm-protocol" - - For CDMA devices, the protocol of the Rm interface, given as a - MMModemCdmaRmProtocol - value (signature "u"). - - - "multiplex" - - Multiplex support requested by the user, given as a - MMBearerMultiplexSupport - value (signature "u"). Since 1.18. - - + + There are no settings specific to this call that would apply to 3GPP2 + (CDMA/EVDO) devices. --> diff --git a/introspection/org.freedesktop.ModemManager1.Modem.xml b/introspection/org.freedesktop.ModemManager1.Modem.xml index 6accaf29..7d6e3603 100644 --- a/introspection/org.freedesktop.ModemManager1.Modem.xml +++ b/introspection/org.freedesktop.ModemManager1.Modem.xml @@ -63,31 +63,8 @@ This request may fail if the modem does not support additional bearers, if too many bearers are already defined, or if properties are invalid. - Allowed properties are: - - "apn" - Access Point Name, given as a string value (signature "s"). Required in 3GPP. - "ip-type" - Addressing type, given as a MMBearerIpFamily value (signature "u"). Optional in 3GPP and CDMA. - "allowed-auth" - The authentication method to use, given as a MMBearerAllowedAuth value (signature "u"). Optional in 3GPP. - "user" - User name (if any) required by the network, given as a string value (signature "s"). Optional in 3GPP. - "password" - Password (if any) required by the network, given as a string value (signature "s"). Optional in 3GPP. - "allow-roaming" - Flag to tell whether connection is allowed during roaming, given as a boolean value (signature "b"). Optional in 3GPP. - "rm-protocol" - Protocol of the Rm interface, given as a MMModemCdmaRmProtocol value (signature "u"). Optional in CDMA. - "number" - Number to dial for the data connection, given as a string value (signature "s"). Deprecated since version 1.10.0. - "multiplex" - Multiplex support requested by the user, given as a MMBearerMultiplexSupport value (signature "u"). Since 1.18. - - - Some properties are only applicable to a bearer of certain access - technologies, for example the "apn" property is not - applicable to CDMA2000 Packet Data Session bearers. + The properties allowed are any of the ones defined in the + bearer properties. --> -- cgit v1.2.3-70-g09d2