iface-modem-3gpp: fix location update when LAC=0 but TAC given

This commit is contained in:
Aleksander Morgado
2018-08-09 10:45:28 +02:00
parent 7e6b4d7aa9
commit 5a2f3cce95

View File

@@ -1238,7 +1238,7 @@ mm_iface_modem_3gpp_update_location (MMIfaceModem3gpp *self,
* where we're registering (loading current registration info after a state * where we're registering (loading current registration info after a state
* change to registered), we also allow LAC/CID updates. */ * change to registered), we also allow LAC/CID updates. */
if (reg_state_is_registered (state) || ctx->reloading_registration_info) { if (reg_state_is_registered (state) || ctx->reloading_registration_info) {
if (location_area_code > 0 && cell_id > 0) if ((location_area_code > 0 || tracking_area_code > 0) && cell_id > 0)
mm_iface_modem_location_3gpp_update_lac_tac_ci (MM_IFACE_MODEM_LOCATION (self), mm_iface_modem_location_3gpp_update_lac_tac_ci (MM_IFACE_MODEM_LOCATION (self),
location_area_code, location_area_code,
tracking_area_code, tracking_area_code,