From d4b2be5f6b1a2e4e203dc6038bf31e63e4d80670 Mon Sep 17 00:00:00 2001 From: David Rochberg Date: Mon, 11 Oct 2010 17:14:32 -0400 Subject: [PATCH 1/2] Replace ActivationCompleted with ActivationStateChanged, add CDMA error enums. BUG=6885 TEST=mm-modem.h is correct, cromo compiles Change-Id: I2b6a49bda5a6ff7bf6e4aac2e99914bf3c33c732 Review URL: http://codereview.chromium.org/3705001 Review URL: http://codereview.chromium.org/3702006 --- ...rg.freedesktop.ModemManager.Modem.Cdma.xml | 79 ++++++++++++++++++- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/introspection/org.freedesktop.ModemManager.Modem.Cdma.xml b/introspection/org.freedesktop.ModemManager.Modem.Cdma.xml index fd6a4d3d..3e4c98b7 100644 --- a/introspection/org.freedesktop.ModemManager.Modem.Cdma.xml +++ b/introspection/org.freedesktop.ModemManager.Modem.Cdma.xml @@ -5,7 +5,9 @@ - Activates the modem for use with a given carrier. + Activates the modem for use with a given carrier. In the + event of immediate failure, returns an error value instead of + setting a DBus error. @@ -14,6 +16,13 @@ Name of carrier. + + + An enum from MM_MODEM_CDMA_ACTIVATION_ERROR. This is + returned for immediate errors. Delayed errors are returned + via an ActivationStateChanged signal + + @@ -31,6 +40,24 @@ + + + The device activation state changed. + + + Current activation state + + + Carrier-specific error code + + + Selected Modem.Simple.GetStatus keys that have changed as a + result of this activation state change. Will include 'mdn' + and 'min'. + + + + Get the current signal quality. @@ -140,6 +167,54 @@ Device is ready for use. + + + + + + Device cannot activate while roaming. + + + + + Device cannot activate on this network type (eg EVDO vs 1xRTT). + + + + + Device could not connect to the network for activation. + + + + + Device could not authenticate to the network for activation. + + + + + Later stages of device provisioning failed. + + + + + No signal available. + + + + + An error occurred. + + + + + Activation timed out. + + + + + API call for initial activation failed. + + + - From f047ca66a4c58bdfa69ce70026fc840d58a80ebe Mon Sep 17 00:00:00 2001 From: Elly Jones Date: Wed, 15 Sep 2010 13:22:25 -0400 Subject: [PATCH 2/2] modemmanager: Add a reason to ConnectionStateChanged events. This can be used by a connection manager to decide to respond in a different way to certain kinds of disconnects (e.g. intentional versus unintentional versus suspension). TEST=None This change introduces no additional code, so testing it in isolation is not possible. BUG=chromium-os:6744 Change-Id: Ie371e20ec7a003333eba013af3ad61c0e494a4ad Signed-Off-By: Elly Jones Review URL: http://codereview.chromium.org/3413011 (cherry picked from commit 29a9674b818fd64c19bad84f526f6fa68edec174) --- .../org.freedesktop.ModemManager.Modem.xml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/introspection/org.freedesktop.ModemManager.Modem.xml b/introspection/org.freedesktop.ModemManager.Modem.xml index 1c032aa6..e1a07293 100644 --- a/introspection/org.freedesktop.ModemManager.Modem.xml +++ b/introspection/org.freedesktop.ModemManager.Modem.xml @@ -93,6 +93,11 @@ Reason for state transition. + + + Reason for this state change. + + @@ -211,5 +216,24 @@ + + + + Reason unknown or not reportable. + + + + + Connection state change was requested by an interface user. + + + + + Connection state change was caused by a system suspend. + + + + +