From 5a2f3cce95d21e565528a47e5dda17d8ec9e5dc9 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 9 Aug 2018 10:45:28 +0200 Subject: iface-modem-3gpp: fix location update when LAC=0 but TAC given --- src/mm-iface-modem-3gpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mm-iface-modem-3gpp.c') diff --git a/src/mm-iface-modem-3gpp.c b/src/mm-iface-modem-3gpp.c index 4aeaa8a1..72a9ab6d 100644 --- a/src/mm-iface-modem-3gpp.c +++ b/src/mm-iface-modem-3gpp.c @@ -1238,7 +1238,7 @@ mm_iface_modem_3gpp_update_location (MMIfaceModem3gpp *self, * where we're registering (loading current registration info after a state * change to registered), we also allow LAC/CID updates. */ 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), location_area_code, tracking_area_code, -- cgit v1.2.3-70-g09d2