summaryrefslogtreecommitdiff
path: root/introspection
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2013-06-03 16:01:57 -0500
committerDan Williams <dcbw@redhat.com>2014-05-06 21:48:55 -0500
commit6080425088470ffb1ba0e52076e65d3b3c58aa00 (patch)
tree578cd8e4b6f820407c88f41e2069b77f8155127d /introspection
parentbb1fece6e6bdae53bc8383d300fa866150032ebc (diff)
downloadNetworkManager-6080425088470ffb1ba0e52076e65d3b3c58aa00.tar.gz
wwan: use modem states instead of enabled/connected properties
Determining when the NMDeviceModem is available and when different connections are available is easier if the modem's state is tracked, instead of using the separate Enabled and Connected properties. These properties could not accurately represent the SIM lock state and prevented NetworkManager from making the modem available for auto-activation when locked, even if a PIN was available. In this new scheme, the NMDeviceModem is UNAVAILABLE when the ModemManager modem state is FAILED, UNKNOWN, or INITIALIZING. It transitions to the NM DISCONNECTED state when the modem has finished initializing and has not failed. Once the NMDeviceModem is in DISCONNECTED state it can be activated even if the SIM is locked and a PIN is required; the PIN will be requested when starting activation, either from the connection itself or via a secrets request. This makes auto-activation of WWAN connections possible. This also allows us to consolidate code dealing with modem enable/disable into the base NMModem class using the modem state, and to log more modem information for debugging purposes.
Diffstat (limited to 'introspection')
-rw-r--r--introspection/nm-device.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/introspection/nm-device.xml b/introspection/nm-device.xml
index f9fbc61d07..34afcfc2a8 100644
--- a/introspection/nm-device.xml
+++ b/introspection/nm-device.xml
@@ -612,6 +612,16 @@
teamd control failed.
</tp:docstring>
</tp:enumvalue>
+ <tp:enumvalue suffix="MODEM_FAILED" value="57">
+ <tp:docstring>
+ Modem failed or no longer available.
+ </tp:docstring>
+ </tp:enumvalue>
+ <tp:enumvalue suffix="MODEM_AVAILABLE" value="58">
+ <tp:docstring>
+ Modem now ready and available.
+ </tp:docstring>
+ </tp:enumvalue>
</tp:enum>
<tp:struct name="NM_DEVICE_STATE_REASON_STRUCT">