From: Oskari Timperi <oskari.timp...@iki.fi>

---
 plugins/udev.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/plugins/udev.c b/plugins/udev.c
index baec663..0daf030 100644
--- a/plugins/udev.c
+++ b/plugins/udev.c
@@ -494,6 +494,19 @@ static void add_calypso(struct ofono_modem *modem,
        ofono_modem_register(modem);
 }
 
+static void add_tc65(struct ofono_modem *modem,
+               struct udev_device *udev_device)
+{
+       const char *devnode;
+
+       DBG("modem %p", modem);
+
+       devnode = udev_device_get_devnode(udev_device);
+       ofono_modem_set_string(modem, "Device", devnode);
+
+       ofono_modem_register(modem);
+}
+
 static void add_modem(struct udev_device *udev_device)
 {
        struct ofono_modem *modem;
@@ -582,6 +595,8 @@ done:
                add_gobi(modem, udev_device);
        else if (g_strcmp0(driver, "calypso") == 0)
                add_calypso(modem, udev_device);
+       else if (g_strcmp0(driver, "tc65") == 0)
+               add_tc65(modem, udev_device);
 }
 
 static gboolean devpath_remove(gpointer key, gpointer value, gpointer 
user_data)
-- 
1.7.1

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to