Change in osmo-pcu[master]: tbf_dl: uint8_t is enough to store a TA value

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/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Jul 7 15:24:43 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/19175 )


Change subject: tbf_dl: uint8_t is enough to store a TA value
......................................................................

tbf_dl: uint8_t is enough to store a TA value

According to 3GPP TS 44.018 sec 10.5.2.40, Timing Advance value is 8 bit
and range is 0-63 (0-219 on GSM400). So there's no need for 16 bits to
store it. uint8_t is used in all other places in the code.

Change-Id: I38aa063ae30ca5680fef6252d2cef22cea98c123
---
M src/tbf_dl.cpp
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/75/19175/1

diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index 02aaa3a..e6be3c3 100644
--- a/src/tbf_dl.cpp
+++ b/src/tbf_dl.cpp
@@ -138,7 +138,7 @@
 {
 	bool ss;
 	int8_t use_trx;
-	uint16_t ta = GSM48_TA_INVALID;
+	uint8_t ta = GSM48_TA_INVALID;
 	struct gprs_rlcmac_ul_tbf *ul_tbf = NULL, *old_ul_tbf;
 	struct gprs_rlcmac_dl_tbf *dl_tbf = NULL;
 	GprsMs *ms;

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I38aa063ae30ca5680fef6252d2cef22cea98c123
Gerrit-Change-Number: 19175
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200707/88ce0271/attachment.htm>


More information about the gerrit-log mailing list