droid 4: Add probing.
PATCH 3/3 droid 4: Add probing.
Probe Droid 4 modem. This should result in basic support working.
--- Makefile.am | 3 + plugins/droid.c | 206 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ plugins/udevng.c | 31 +++++++++ 3 files changed, 240 insertions(+) create mode 100644 plugins/droid.c
Makefile.am +3 -0
@@ -603,6 +603,9 @@ builtin_sources += plugins/ublox.c builtin_modules += xmm7xxx builtin_sources += plugins/xmm7xxx.c +builtin_modules += droid +builtin_sources += plugins/droid.c + if BLUETOOTH if BLUEZ4 builtin_modules += sap
plugins/droid.c new file +206 -0
206 lines not on this page · raw message
plugins/udevng.c +31 -0
@@ -712,6 +712,34 @@ static gboolean setup_telitqmi(struct modem_info *modem)return TRUE; } +static gboolean setup_droid (struct modem_info *modem) +{ +const char *at =NULL ; +GSList *list; + +DBG ("%s" , modem->syspath); + +for (list = modem->devices; list; list = list->next) { +struct device_info *info = list->data; + +DBG ("%s %s %s %s %s" , info->devnode, info->interface, + info->number, info->label, info->subsystem); + +if (g_strcmp0 (info->interface,"255/255/255" ) ==0 && +g_strcmp0 (info->number,"04" ) ==0 ) { + at = info->devnode; + } + } + +if (at ==NULL ) +return FALSE; + +ofono_modem_set_string (modem->modem,"Device" , at); +ofono_modem_set_driver (modem->modem,"droid" ); + +return TRUE; +} +/* TODO: Not used as we have no simcom driver */ static gboolean setup_simcom (struct modem_info *modem) {
@@ -1401,6 +1429,7 @@ static struct { { "gemalto", setup_gemalto }, { "xmm7xxx", setup_xmm7xxx }, { "mbim", setup_mbim }, + { "droid", setup_droid },/* Following are non-USB modems */ { "ifx", setup_ifx }, { "u8500", setup_isi_serial },
@@ -1786,6 +1815,8 @@ static struct { { "telit", "cdc_acm", "1bc7", "0021" }, { "telitqmi", "qmi_wwan", "1bc7", "1201" }, { "telitqmi", "option", "1bc7", "1201" }, + { "droid", "qmi_wwan", "22b8", "2a70" }, + { "droid", "option", "22b8", "2a70" }, { "nokia", "option", "0421", "060e" }, { "nokia", "option", "0421", "0623" }, { "samsung", "option", "04e8", "6889" },
Signature · 6 lines
2.11.0 -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Denis Kenzior
AppliedHi Pavel,
Quoted 8 lines · Pavel Machek
Probe Droid 4 modem. This should result in basic support working.
--- Makefile.am | 3 + plugins/droid.c | 206 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ plugins/udevng.c | 31 +++++++++ 3 files changed, 240 insertions(+)create mode 100644
plugins/droid.c
Applied, thanks.
Regards,
-Denis