From 5191dd3d9e1c20cc27bdce9ff1502b15c1c7e042 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 26 Mar 2012 12:56:18 +0200 Subject: option: fix reading port-specific setup file The `physdev' stored in the probe is the sysfs path of the parent device, that owning all ports. We need to build the setup file path using the port's sysfs path instead. --- plugins/option/mm-plugin-hso.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/option/mm-plugin-hso.c') diff --git a/plugins/option/mm-plugin-hso.c b/plugins/option/mm-plugin-hso.c index 5062f0b3..2e76f6ce 100644 --- a/plugins/option/mm-plugin-hso.c +++ b/plugins/option/mm-plugin-hso.c @@ -79,7 +79,7 @@ grab_port (MMPluginBase *base, } } - sysfs_path = mm_port_probe_get_port_physdev (probe); + sysfs_path = g_udev_device_get_sysfs_path (port); /* Detect AT port types */ if (g_str_equal (subsys, "tty")) { @@ -99,7 +99,7 @@ grab_port (MMPluginBase *base, /* If this is the first port being grabbed, create a new modem object */ if (!existing) - modem = MM_BASE_MODEM (mm_broadband_modem_hso_new (sysfs_path, + modem = MM_BASE_MODEM (mm_broadband_modem_hso_new (mm_port_probe_get_port_physdev (probe), mm_port_probe_get_port_driver (probe), mm_plugin_get_name (MM_PLUGIN (base)), vendor, -- cgit v1.2.3-70-g09d2