summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorYu A Wang <arron.wang@intel.com>2012-01-05 01:52:14 -0500
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-05 11:52:48 +0100
commit7a6655c302f93b163156b3d8fd3dad4332cc24bc (patch)
tree6e00bf8553237f451d4af6d7fec99da562d437e0 /plugins
parentfcf438c1615943adff26832b0713c437af41f93f (diff)
downloadconnman-7a6655c302f93b163156b3d8fd3dad4332cc24bc.tar.gz
connman-7a6655c302f93b163156b3d8fd3dad4332cc24bc.tar.bz2
connman-7a6655c302f93b163156b3d8fd3dad4332cc24bc.zip
ofono: Create device for CDMA modem
For cdma modem, the property change for serial may after interfaces, then we need to create device for cdma modem when we get serial property
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ofono.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 4a6467bb..e8d708cc 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -2022,6 +2022,12 @@ static gboolean modem_changed(DBusConnection *connection, DBusMessage *message,
modem->serial = g_strdup(serial);
DBG("%s Serial %s", modem->path, modem->serial);
+
+ if (has_interface(modem->interfaces,
+ OFONO_API_CDMA_CM) == TRUE) {
+ if (ready_to_create_device(modem) == TRUE)
+ create_device(modem);
+ }
}
return TRUE;