aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2014-02-06 15:31:54 +0100
committerAleksander Morgado <aleksander@aleksander.es>2014-09-05 12:10:55 +0200
commit836892902e73c7046f2f2352d711e44d05675afb (patch)
treeb0547291bc380845fdfde6e128c9f708759e8944 /src
parent63f2e72c6c14ecef88d0a89b48729876b3cec931 (diff)
broadband-modem-qmi: A-GPS available by default
Also bump libqmi requirement to 1.11.1, which is the one exposing the new A-GPS related commands.
Diffstat (limited to 'src')
-rw-r--r--src/mm-broadband-modem-qmi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c
index 277d43d4..6580c385 100644
--- a/src/mm-broadband-modem-qmi.c
+++ b/src/mm-broadband-modem-qmi.c
@@ -11,6 +11,7 @@
* GNU General Public License for more details:
*
* Copyright (C) 2012 Google Inc.
+ * Copyright (C) 2014 Aleksander Morgado <aleksander@aleksander.es>
*/
#include <config.h>
@@ -7659,11 +7660,13 @@ parent_load_capabilities_ready (MMIfaceModemLocation *self,
/* Now our own checks */
- /* If we have support for the PDS client, GPS location is supported */
+ /* If we have support for the PDS client, GPS and A-GPS location is supported */
if (port && mm_port_qmi_peek_client (port,
QMI_SERVICE_PDS,
MM_PORT_QMI_FLAG_DEFAULT))
- sources |= (MM_MODEM_LOCATION_SOURCE_GPS_NMEA | MM_MODEM_LOCATION_SOURCE_GPS_RAW);
+ sources |= (MM_MODEM_LOCATION_SOURCE_GPS_NMEA |
+ MM_MODEM_LOCATION_SOURCE_GPS_RAW |
+ MM_MODEM_LOCATION_SOURCE_AGPS);
/* If the modem is CDMA, we have support for CDMA BS location */
if (mm_iface_modem_is_cdma (MM_IFACE_MODEM (self)))