summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>2012-02-03 17:13:38 -0800
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-13 12:52:26 +0100
commit296cfd7364efd8c32fbbedf0465a111c2d2bc74e (patch)
treed9f7b6351adf7af23726bec9af13652ea6f6b28d /plugins
parentd1c81cd30abc08d0f9237e076da6a02d0fc83a26 (diff)
downloadconnman-296cfd7364efd8c32fbbedf0465a111c2d2bc74e.tar.gz
connman-296cfd7364efd8c32fbbedf0465a111c2d2bc74e.tar.bz2
connman-296cfd7364efd8c32fbbedf0465a111c2d2bc74e.zip
ofono: Update CDMA documentation
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ofono.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index df2b5807..d87d7b6a 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -84,8 +84,8 @@ enum ofono_api {
* attached -> netreg -> ready
*
* Depending on the modem type, this plugin will behave differently.
- * For example CDMA CDMA modems don't have an IMSI. The following
- * description is strictly about GSM modems.
+ *
+ * GSM working flow:
*
* When a new modem appears, the plugin always powers it up. This
* allows the plugin to create a connman_device. The core will call
@@ -104,6 +104,27 @@ enum ofono_api {
* successful the modem is connected to the network. oFono will inform
* the plugin about IP configuration through the updating the context's
* properties.
+ *
+ * CDMA working flow:
+ *
+ * When a new modem appears, the plugin always powers it up. This
+ * allows the plugin to create connman_device either using IMSI either
+ * using modem Serial if the modem got a SIM interface or not.
+ *
+ * As for GSM, the core will call modem_enable() if the technology
+ * is enabled. modem_enable() will then set the modem online.
+ * If the technology is disabled then modem_disable() will just set the
+ * modem offline. The modem is always kept powered all the time.
+ *
+ * After setting the modem online the plugin waits for CdmaConnectionManager
+ * interface to appear. Then, once CdmaNetworkRegistration appears, a new
+ * Service will be created and registered at the core.
+ *
+ * When asked to connect to the network (network_connect()) the plugin
+ * will power up the CdmaConnectionManager interface.
+ * If the operation is successful the modem is connected to the network.
+ * oFono will inform the plugin about IP configuration through the
+ * updating CdmaConnectionManager settings properties.
*/
static DBusConnection *connection;