From 63dd4ad263be6bd3d38cbbccac80993fe7351b52 Mon Sep 17 00:00:00 2001 From: Raphaƫl Jakse Date: Wed, 18 Oct 2023 15:12:30 +0200 Subject: iface-location: allow enabling without SIM When the modem is in a failed state because of a SIM-related error, like a missing SIM, or if the modem is SIM-locked, allow the Location interface to initialize and be enabled anyway. This allows someone without a SIM to use the GPS, which does not particularly require a phone subscription. It also allows someone with a SIM to use the GPS even if the SIM is still locked. This patch was reworked, while keeping the original idea, by: Aleksander Morgado Fixes #183 --- include/ModemManager-enums.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/ModemManager-enums.h') diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h index 240c1396..178c15f2 100644 --- a/include/ModemManager-enums.h +++ b/include/ModemManager-enums.h @@ -1113,8 +1113,13 @@ typedef enum { /*< underscore_name=mm_sms_cdma_service_category >*/ * @MM_MODEM_LOCATION_SOURCE_GPS_NMEA: GPS location given as NMEA traces. * @MM_MODEM_LOCATION_SOURCE_CDMA_BS: CDMA base station position. * @MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED: No location given, just GPS module setup. Since 1.4. - * @MM_MODEM_LOCATION_SOURCE_AGPS_MSA: Mobile Station Assisted A-GPS location requested. Since 1.12. - * @MM_MODEM_LOCATION_SOURCE_AGPS_MSB: Mobile Station Based A-GPS location requested. Since 1.12. + * @MM_MODEM_LOCATION_SOURCE_AGPS_MSA: Mobile Station Assisted A-GPS location requested. In + * MSA A-GPS, the position fix is computed by a server online. The modem must have a valid SIM + * card inserted and be enabled for this mode to be allowed. Since 1.12. + * @MM_MODEM_LOCATION_SOURCE_AGPS_MSB: Mobile Station Based A-GPS location requested. In MSB + * A-GPS, the position fix is computed by the modem, but it first gathers information from an + * online server to facilitate the process (e.g. ephemeris). The modem must have a valid SIM + * card inserted and be enabled for this mode to be allowed. Since 1.12. * * Sources of location information supported by the modem. * -- cgit v1.2.3-70-g09d2