ofono: Add documentation
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 22 Nov 2011 12:54:58 +0000 (13:54 +0100)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 12 Dec 2011 16:33:58 +0000 (17:33 +0100)
plugins/ofono.c

index 6ac4f2e..2c31b52 100644 (file)
@@ -69,6 +69,21 @@ enum ofono_api {
        OFONO_API_CM =          0x4,
 };
 
+/*
+ * The way this plugin works is following:
+ *
+ *   powered -> SubscriberIdentity or Online = True -> gprs, context ->
+ *     attached -> netreg -> ready
+ *
+ * Enabling and disabling modems are steered through the rfkill
+ * interface. That means when ConnMan toggles the rfkill bit oFono
+ * will add or remove the modems.
+ *
+ * ConnMan will always power up (set Powered and Online) the
+ * modems. No need to power them down because this will be done
+ * through the rfkill inteface.
+ */
+
 static DBusConnection *connection;
 
 static GHashTable *modem_hash;