From: Yu A Wang Date: Thu, 5 Jan 2012 06:52:14 +0000 (-0500) Subject: ofono: Create device for CDMA modem X-Git-Tag: 2.0_alpha~761 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a6655c302f93b163156b3d8fd3dad4332cc24bc;p=framework%2Fconnectivity%2Fconnman.git 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 --- diff --git a/plugins/ofono.c b/plugins/ofono.c index 4a6467b..e8d708c 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;