diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-24 10:31:53 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-07-01 01:10:39 +0200 |
commit | b385fc20b01ac971080a20b36d2e81f26f051370 (patch) | |
tree | 94957e944ca547599744d3f50c32fce6e7fbe016 /cli | |
parent | f226b6330115c39c3b209f84452729a0e412da24 (diff) |
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.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/mmcli-modem-location.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |