From b385fc20b01ac971080a20b36d2e81f26f051370 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 24 Jun 2021 10:31:53 +0200 Subject: cli,location: TAC is 3 bytes in 5GNR TAC is 3 bytes for NG-RAN as specified in 3GPP TS 38.413 clause 9.3.3.10 and in 3GPP TS 24.501 clause 9.10.3.8. We'll always print it as 3 bytes in the cli output, as that's also backwards compatible with the original 2 byte TAC in LTE. --- cli/mmcli-modem-location.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/mmcli-modem-location.c') diff --git a/cli/mmcli-modem-location.c b/cli/mmcli-modem-location.c index 21562a2a..1205aad3 100644 --- a/cli/mmcli-modem-location.c +++ b/cli/mmcli-modem-location.c @@ -536,7 +536,7 @@ get_location_process_reply (MMLocation3gpp *location_3gpp, mcc = g_strndup (operator_code ? operator_code : "0", 3); mnc = g_strdup (operator_code ? operator_code + 3 : "0"); lac = g_strdup_printf ("%04lX", mm_location_3gpp_get_location_area_code (location_3gpp)); - tac = g_strdup_printf ("%04lX", mm_location_3gpp_get_tracking_area_code (location_3gpp)); + tac = g_strdup_printf ("%06lX", mm_location_3gpp_get_tracking_area_code (location_3gpp)); cid = g_strdup_printf ("%08lX", mm_location_3gpp_get_cell_id (location_3gpp)); } -- cgit v1.2.3-70-g09d2