diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-03-14 08:02:18 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@gnu.org> | 2019-04-09 12:24:39 +0000 |
commit | b77aa7ab0eaae2aca4e2f01f8328f1015260356d (patch) | |
tree | 35c23ec77753a2879b8eefed4e162261e229aa03 /plugins/xmm/mm-shared-xmm.c | |
parent | 619d2ce5ac1639ffe1229b594a4028a1520ac1b3 (diff) |
location,agps: explicitly specify that MSA A-GPS is implemented
The A-GPS based implementations we currently have assume MSA A-GPS, so
rename the MMModemLocationSource enum value to reflect that.
Diffstat (limited to 'plugins/xmm/mm-shared-xmm.c')
-rw-r--r-- | plugins/xmm/mm-shared-xmm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/xmm/mm-shared-xmm.c b/plugins/xmm/mm-shared-xmm.c index cbc7c7b4..de8bbfa2 100644 --- a/plugins/xmm/mm-shared-xmm.c +++ b/plugins/xmm/mm-shared-xmm.c @@ -855,7 +855,7 @@ xlcslsr_test_ready (MMBaseModem *self, if (transport_protocol_supl_supported && ms_assisted_based_position_mode_supported) { mm_dbg ("XLCSLSR based A-GPS control supported"); - priv->supported_sources |= MM_MODEM_LOCATION_SOURCE_AGPS; + priv->supported_sources |= MM_MODEM_LOCATION_SOURCE_AGPS_MSA; } else { mm_dbg ("XLCSLSR based A-GPS control unsupported: protocol supl %s, ms assisted/based %s", transport_protocol_supl_supported ? "supported" : "unsupported", @@ -1192,7 +1192,7 @@ gps_engine_state_get_expected (MMModemLocationSource sources) /* If at lease one of GPS nmea/raw sources enabled, engine started */ if (sources & (MM_MODEM_LOCATION_SOURCE_GPS_NMEA | MM_MODEM_LOCATION_SOURCE_GPS_RAW)) { /* If A-GPS is enabled, ASSISTED mode */ - if (sources & MM_MODEM_LOCATION_SOURCE_AGPS) + if (sources & MM_MODEM_LOCATION_SOURCE_AGPS_MSA) return GPS_ENGINE_STATE_ASSISTED; /* Otherwise, STANDALONE */ return GPS_ENGINE_STATE_STANDALONE; @@ -1290,7 +1290,7 @@ mm_shared_xmm_disable_location_gathering (MMIfaceModemLocation *self, /* We only expect GPS sources here */ g_assert (source & (MM_MODEM_LOCATION_SOURCE_GPS_NMEA | MM_MODEM_LOCATION_SOURCE_GPS_RAW | - MM_MODEM_LOCATION_SOURCE_AGPS)); + MM_MODEM_LOCATION_SOURCE_AGPS_MSA)); /* Update engine based on the expected sources */ gps_engine_state_select (MM_SHARED_XMM (self), @@ -1382,7 +1382,7 @@ mm_shared_xmm_enable_location_gathering (MMIfaceModemLocation *self, /* We only expect GPS sources here */ g_assert (source & (MM_MODEM_LOCATION_SOURCE_GPS_NMEA | MM_MODEM_LOCATION_SOURCE_GPS_RAW | - MM_MODEM_LOCATION_SOURCE_AGPS)); + MM_MODEM_LOCATION_SOURCE_AGPS_MSA)); /* Update engine based on the expected sources */ gps_engine_state_select (MM_SHARED_XMM (self), |