From 466b6edbf72e95bdc5b563ab2ea90df79f3796ea Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 28 Apr 2011 12:35:28 +0200 Subject: [PATCH] gsm: allow setting more than one band --- ...rg.freedesktop.ModemManager.Modem.Gsm.Network.xml | 12 ++++++------ src/mm-modem-gsm-network.c | 10 ---------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/introspection/org.freedesktop.ModemManager.Modem.Gsm.Network.xml b/introspection/org.freedesktop.ModemManager.Modem.Gsm.Network.xml index 7c266818..4a8e8035 100644 --- a/introspection/org.freedesktop.ModemManager.Modem.Gsm.Network.xml +++ b/introspection/org.freedesktop.ModemManager.Modem.Gsm.Network.xml @@ -87,26 +87,26 @@ - Sets the band the device is allowed to use when connecting to a mobile network. + Sets the bands the device is allowed to use when connecting to a mobile network. - The desired band. Only one band may be specified, and may not be UNKNOWN. + The desired bands, as a set of flags. - Returns the current band the device is using. (Note for plugin writers: returned value must not be ANY) + Returns the current bands the device is using. (Note for plugin writers: returned value must not be ANY) - The current band. + The current bands, as a set of flags. @@ -160,7 +160,7 @@
  • Current operator code of the operator to which the mobile is currently registered. Returned in the format "MCCMNC", where MCC - is the three-digit ITU E.212 Mobile Country Code and MNC is the + is the three-digit ITU E.212 Mobile Country Code and MNC is the two- or three-digit GSM Mobile Network Code. If the MCC and MNC are not known or the mobile is not registered to a mobile network, this value should be a zero-length (blank) string. e.g. "31026" @@ -233,7 +233,7 @@ Current operator code of the operator to which the mobile is currently registered. Returned in the format "MCCMNC", where MCC - is the three-digit ITU E.212 Mobile Country Code and MNC is the + is the three-digit ITU E.212 Mobile Country Code and MNC is the two- or three-digit GSM Mobile Network Code. If the MCC and MNC are not known or the mobile is not registered to a mobile network, this value should be a zero-length (blank) string. e.g. "31026" or diff --git a/src/mm-modem-gsm-network.c b/src/mm-modem-gsm-network.c index 75ca7de9..d82bf792 100644 --- a/src/mm-modem-gsm-network.c +++ b/src/mm-modem-gsm-network.c @@ -496,16 +496,6 @@ impl_gsm_modem_set_band (MMModemGsmNetwork *modem, MMModemGsmBand band, DBusGMethodInvocation *context) { - if (!check_for_single_value (band)) { - GError *error; - - error = g_error_new_literal (MM_MODEM_ERROR, MM_MODEM_ERROR_OPERATION_NOT_SUPPORTED, - "Invalid arguments (more than one value given)"); - dbus_g_method_return_error (context, error); - g_error_free (error); - return; - } - mm_modem_gsm_network_set_band (modem, band, async_call_done, context); }