From 40406693b61cb0ca601815f1478c773d6bbe9233 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 30 Sep 2011 15:01:17 +0200 Subject: [PATCH] api: new SetAllowedBands() to be able to modify the allowed bands in the modem Changing the allowed bands in a modem may fail, for example if trying to set a frequency band which is not in the bands mask reported as Supported by the modem. Therefore, we need an explicit SetAllowedBands() method with proper error reporting instead of making the property writable. --- new/org.freedesktop.ModemManager1.Modem.xml | 22 +++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/new/org.freedesktop.ModemManager1.Modem.xml b/new/org.freedesktop.ModemManager1.Modem.xml index 32666c2f..31301401 100644 --- a/new/org.freedesktop.ModemManager1.Modem.xml +++ b/new/org.freedesktop.ModemManager1.Modem.xml @@ -118,6 +118,20 @@ + + + Set the radio frequency and technology bands the device is currently + allowed to use when connecting to a network. + + + + + + Bitmask of all the bands allowed in the modem. + + + + @@ -289,11 +303,11 @@ - + - The allowed radio frequency and technology bands the device is currently - allowed to use when connecting to a network. For POTS devices, only - the "any" value is supported. + The radio frequency and technology bands the device is currently allowed + to use when connecting to a network. For POTS devices, only the "any" + value is supported.