aboutsummaryrefslogtreecommitdiff
path: root/plugins/cinterion/mm-plugin-cinterion.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2014-06-27 12:58:50 +0200
committerAleksander Morgado <aleksander@aleksander.es>2014-06-27 13:18:29 +0200
commit8f837b830d5f636a113bacc8c552f990766694fa (patch)
tree62e8c5f68f21aaf70ddf65f3b2bb13999ef63abe /plugins/cinterion/mm-plugin-cinterion.c
parente0f3716d2627dead7c8cb5f8f59fa2c126a86d72 (diff)
cinterion: enable GPS location reporting for the PHS8 in AT-mode
This enables support for GPS location reporting when the PHS8 is NOT used in QMI mode.
Diffstat (limited to 'plugins/cinterion/mm-plugin-cinterion.c')
-rw-r--r--plugins/cinterion/mm-plugin-cinterion.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/plugins/cinterion/mm-plugin-cinterion.c b/plugins/cinterion/mm-plugin-cinterion.c
index 1d53155c..18c53199 100644
--- a/plugins/cinterion/mm-plugin-cinterion.c
+++ b/plugins/cinterion/mm-plugin-cinterion.c
@@ -166,10 +166,25 @@ grab_port (MMPlugin *self,
ptype = mm_port_probe_get_port_type (probe);
- if (g_object_get_data (G_OBJECT (probe), TAG_CINTERION_APP_PORT))
+ if (g_object_get_data (G_OBJECT (probe), TAG_CINTERION_APP_PORT)) {
+ mm_dbg ("(%s/%s)' Port flagged as primary",
+ mm_port_probe_get_port_subsys (probe),
+ mm_port_probe_get_port_name (probe));
pflags = MM_PORT_SERIAL_AT_FLAG_PRIMARY;
- else if (g_object_get_data (G_OBJECT (probe), TAG_CINTERION_MODEM_PORT))
+ } else if (g_object_get_data (G_OBJECT (probe), TAG_CINTERION_MODEM_PORT)) {
+ mm_dbg ("(%s/%s)' Port flagged as PPP",
+ mm_port_probe_get_port_subsys (probe),
+ mm_port_probe_get_port_name (probe));
pflags = MM_PORT_SERIAL_AT_FLAG_PPP;
+ } else if (g_udev_device_get_property_as_boolean (mm_port_probe_peek_port (probe),
+ "ID_MM_CINTERION_PORT_TYPE_GPS")) {
+ mm_dbg ("(%s/%s)' Port flagged as GPS",
+ mm_port_probe_get_port_subsys (probe),
+ mm_port_probe_get_port_name (probe));
+ /* Not an AT port, but the port to grab GPS traces */
+ g_warn_if_fail (ptype == MM_PORT_TYPE_UNKNOWN);
+ ptype = MM_PORT_TYPE_GPS;
+ }
return mm_base_modem_grab_port (modem,
mm_port_probe_get_port_subsys (probe),