Change in libosmocore[master]: gprs_bssgp: abuse gsm48_encode_ra() to encode TAC

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Tue Jan 5 13:55:52 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/21949 )


Change subject: gprs_bssgp: abuse gsm48_encode_ra() to encode TAC
......................................................................

gprs_bssgp: abuse gsm48_encode_ra() to encode TAC

Change-Id: I986552aa52cf38b1c5290d2e5cd3ff2d1c36a4e5
---
M src/gb/gprs_bssgp.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/49/21949/1

diff --git a/src/gb/gprs_bssgp.c b/src/gb/gprs_bssgp.c
index bf0e821..ba4b7c8 100644
--- a/src/gb/gprs_bssgp.c
+++ b/src/gb/gprs_bssgp.c
@@ -402,10 +402,10 @@
 			.mcc = ri->eutran.tai.mcc,
 			.mnc = ri->eutran.tai.mnc,
 			.mnc_3_digits = ri->eutran.tai.mnc_3_digits,
+			.lac = ri->eutran.tai.tac, /* intentional */
 		};
 
 		gsm48_encode_ra((struct gsm48_ra_id *)buf, &raid_temp);
-		osmo_store16be(ri->eutran.tai.tac, buf + 3);
 		OSMO_ASSERT(ri->eutran.global_enb_id_len <=
 			    sizeof(ri->eutran.global_enb_id));
 		memcpy(buf + 5, ri->eutran.global_enb_id,

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/21949
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I986552aa52cf38b1c5290d2e5cd3ff2d1c36a4e5
Gerrit-Change-Number: 21949
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210105/353e1775/attachment.htm>


More information about the gerrit-log mailing list