projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcf438c
)
ofono: Create device for CDMA modem
author
Yu A Wang
<arron.wang@intel.com>
Thu, 5 Jan 2012 06:52:14 +0000
(
01:52
-0500)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Thu, 5 Jan 2012 10:52:48 +0000
(11:52 +0100)
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
plugins/ofono.c
patch
|
blob
|
history
diff --git
a/plugins/ofono.c
b/plugins/ofono.c
index
4a6467b
..
e8d708c
100644
(file)
--- 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;