diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-07-07 17:18:10 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-07-07 17:18:14 +0200 |
commit | 26743ac4f94437f383fb4082976235149c8b2d96 (patch) | |
tree | 7b1701e708a0e837ab21b6a064a0f90ff586d5f5 | |
parent | f861d312fee49caee437858d71bca54852fa3b0a (diff) |
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
-rw-r--r-- | src/tbf_dl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index 02aaa3a0..e6be3c32 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -138,7 +138,7 @@ static int tbf_new_dl_assignment(struct gprs_rlcmac_bts *bts, { 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; |