summaryrefslogtreecommitdiffstats
path: root/plugins/udev.c
diff options
context:
space:
mode:
authorAlex J Lennon <ajlennon@dynamicdevices.co.uk>2015-05-12 18:22:59 +0100
committerDenis Kenzior <denkenz@gmail.com>2015-05-13 09:57:53 -0500
commitb31a3c2390e7d18833396e5e8a4d61bc32c7aaec (patch)
tree6463fe8e0dc170847317ad06a2a7a218987462b8 /plugins/udev.c
parent8d47f97106f2a39c8b5b1ab472a8c5aacda46761 (diff)
downloadofono-b31a3c2390e7d18833396e5e8a4d61bc32c7aaec.tar.bz2
tc65: Replace tc65 plugin with cinterion plugin
On the basis that tc6x and other Cinterion devices will likely have similar firmware requirements, provide a generic Cinterion plugin which is functionally identical to the replaced tc65 plugin. The udev implementation retains support for "tc65" name for backwards compatibility, and adds support for the new "cinterion" name.
Diffstat (limited to 'plugins/udev.c')
-rw-r--r--plugins/udev.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/udev.c b/plugins/udev.c
index a78cd41e..63302285 100644
--- a/plugins/udev.c
+++ b/plugins/udev.c
@@ -192,7 +192,7 @@ static void add_wavecom(struct ofono_modem *modem,
ofono_modem_register(modem);
}
-static void add_tc65(struct ofono_modem *modem,
+static void add_cinterion(struct ofono_modem *modem,
struct udev_device *udev_device)
{
const char *devnode;
@@ -243,6 +243,9 @@ static void add_modem(struct udev_device *udev_device)
if (devpath == NULL)
return;
+ if(g_strcmp0(driver, "tc65") == 0)
+ driver = "cinterion";
+
modem = ofono_modem_create(NULL, driver);
if (modem == NULL)
return;
@@ -305,8 +308,8 @@ done:
add_isi(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);
+ else if (g_strcmp0(driver, "cinterion") == 0)
+ add_cinterion(modem, udev_device);
else if (g_strcmp0(driver, "nokiacdma") == 0)
add_nokiacdma(modem, udev_device);
else if (g_strcmp0(driver, "sim900") == 0)