The switch away from udev.c to udevng.c for serial modems ended up
having a hardcoded driver "legacy" set on them.  This breaks as the
setup routine for the device will never be found this way.  This patch
sets the correct driver for the device.
---
Hi Clayton,

Here's another patch that hopefully gets the N900 a bit further down
the road to initialization.  Apply this _on top of_ the earlier patch
I sent you; they are both needed.

Cheers,
Jonas

 plugins/udevng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/udevng.c b/plugins/udevng.c
index 241fcda..5767259 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -1335,7 +1335,7 @@ static void add_serial_device(struct udev_device *dev)
                modem->type = MODEM_TYPE_SERIAL;
                modem->syspath = g_strdup(syspath);
                modem->devname = g_strdup(devname);
-               modem->driver = g_strdup("legacy");
+               modem->driver = g_strdup(driver);
 
                g_hash_table_replace(modem_list, modem->syspath, modem);
        }
-- 
2.9.3

_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to