aboutsummaryrefslogtreecommitdiff
path: root/plugins/zte/mm-plugin-zte.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-08-24 13:28:22 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-24 13:34:51 +0200
commit0436b3e45753a166fea18d6c1463aef5a38fd1ee (patch)
tree5317581a8f5e85be45ba9cec8cd03be90c717fb8 /plugins/zte/mm-plugin-zte.c
parenta595912d2d70fce7a8370b194c230331fee605a7 (diff)
api,introspection: report list of drivers, not just one
Different ports of the same modem may get handled by different drivers. We therefore need to provide a list of drivers (new `Modem.Drivers' property with signature 'as') instead of just one (removed `Modem.Driver' property with signature 's'). $ sudo mmcli -m 0 | grep drivers | drivers: 'qcserial, qmi_wwan'
Diffstat (limited to 'plugins/zte/mm-plugin-zte.c')
-rw-r--r--plugins/zte/mm-plugin-zte.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/zte/mm-plugin-zte.c b/plugins/zte/mm-plugin-zte.c
index 0c331764..cf48f236 100644
--- a/plugins/zte/mm-plugin-zte.c
+++ b/plugins/zte/mm-plugin-zte.c
@@ -53,7 +53,7 @@ static const MMPortProbeAtCommand custom_at_probe[] = {
static MMBaseModem *
create_modem (MMPlugin *self,
const gchar *sysfs_path,
- const gchar *driver,
+ const gchar **drivers,
guint16 vendor,
guint16 product,
GList *probes,
@@ -69,13 +69,13 @@ create_modem (MMPlugin *self,
if (is_icera)
return MM_BASE_MODEM (mm_broadband_modem_zte_icera_new (sysfs_path,
- driver,
+ drivers,
mm_plugin_get_name (self),
vendor,
product));
return MM_BASE_MODEM (mm_broadband_modem_zte_new (sysfs_path,
- driver,
+ drivers,
mm_plugin_get_name (self),
vendor,
product));