aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-26 12:56:18 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-03-26 12:56:18 +0200
commit5191dd3d9e1c20cc27bdce9ff1502b15c1c7e042 (patch)
treebda225f7f2be96ace8bb82989b3f33b3b4d1ac32
parent46fa15c6034ba4d1444a0b04a0f6e4c2f479eda0 (diff)
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.
-rw-r--r--plugins/option/mm-plugin-hso.c4
1 files changed, 2 insertions, 2 deletions
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,