michael@20: This patch is assembled according to discussions on #ofono michael@20: irc.freenode.net and mailing list thread 'Problem detecting/using wwan0 michael@20: modem' in June 2011, after comprehensive guidance from Denis KENZIOR. michael@20: michael@20: Denis had already modified plugins/udev.c in git commit michael@20: 6a2847f7aba5d84b06940ee29300d4b6fd31d682 to correct detection of michael@20: OEM Ericsson F3607gw modems relabeled by HP and sold as HS2330. michael@20: Because some (or all?) HS2330 modems contain flawed text identifiers michael@20: containing strange (probably erroneous) binary sequences in place of michael@20: the ASCII space '\x20' character, the previous commit is incomplete. michael@20: The following logic detects the modem properly, by comparing binary michael@20: data as well as ASCII text values. michael@20: michael@20: Michael Schloh von Bennewitz michael@20: http://michael.schloh.com/ michael@20: 30 June 2011 michael@20: michael@20: Index: plugins/udev.c michael@20: diff -Nau plugins/udev.c.orig plugins/udev.c michael@20: --- plugins/udev.c.orig 2011-06-30 13:42:29.279704948 +0200 michael@20: +++ plugins/udev.c 2011-06-30 13:43:48.117205221 +0200 michael@20: @@ -134,6 +134,7 @@ michael@20: (g_str_has_suffix(desc, "Minicard Data Modem") || michael@20: g_str_has_suffix(desc, "Mini-Card Data Modem") || michael@20: g_str_has_suffix(desc, "Module Data Modem") || michael@20: + g_str_has_suffix(desc, "Module\xc2\xa0""Data Modem") || michael@20: g_str_has_suffix(desc, "Broadband Data Modem"))) { michael@20: devnode = udev_device_get_devnode(udev_device); michael@20: ofono_modem_set_string(modem, DATA_DEVICE, devnode);