aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoding.cpp
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-09 18:58:54 +0100
committerHarald Welte <laforge@gnumonks.org>2018-01-17 10:50:14 +0000
commit6298fbb7b2f3639fde994633e33ba54a64a6ef9b (patch)
tree97b1e34b60d089468efba48d218041b642523aab /src/encoding.cpp
parent93d947f5e8a30acc9250c124bf9d5bb6a8863526 (diff)
Use Timing Advance Index in UL assignments
Write TAI (if available) when generating Rest Octets for UL Assignment. This should not affect actual PCU behavior because TAI is not yet supported by upper layers but we have to adjust corresponding tests anyway. Change-Id: I8b17be78a46c0bc17516b7c90f35aa4768010ae4
Diffstat (limited to 'src/encoding.cpp')
-rw-r--r--src/encoding.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/encoding.cpp b/src/encoding.cpp
index e96894f2..39cbe249 100644
--- a/src/encoding.cpp
+++ b/src/encoding.cpp
@@ -255,7 +255,9 @@ static inline int write_ia_rest_uplink(const gprs_rlcmac_ul_tbf *tbf, bitvec * d
rc = write_alpha_gamma(dest, alpha, gamma);
check(rc);
- set_0(dest); /* No TIMING_ADVANCE_INDEX */
+ rc = write_ta_index(dest, ta_idx);
+ check(rc);
+
set_0(dest); /* No TBF_STARTING_TIME */
} else {
set_0(dest); /* Single Block Allocation */
@@ -317,7 +319,9 @@ static inline int write_ia_rest_egprs_uplink(const gprs_rlcmac_ul_tbf *tbf, bitv
rc = write_alpha_gamma(dest, alpha, gamma); /* ALPHA and GAMMA */
check(rc);
- set_0(dest); /* No TIMING_ADVANCE_INDEX */
+ rc = write_ta_index(dest, ta_idx);
+ check(rc);
+
set_0(dest); /* No TBF_STARTING_TIME */
bitvec_set_bit(dest, L); /* No Additions for Rel-7 */
} else {