aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-05-23 19:23:56 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-05-23 19:28:03 +0700
commit3f2022e2cbe532c80035e1b86c037603404f5522 (patch)
tree738eb7ce2b35e5b7ba9ba6515efc7a8c380af992
parent93ad3fd9b9aed26a609551c06a80db0e276eb4f1 (diff)
encoding: cosmetic: use RLC_MODE_ACKNOWLEDGED where possible
-rw-r--r--src/encoding.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/encoding.cpp b/src/encoding.cpp
index 18056459..cb89b01f 100644
--- a/src/encoding.cpp
+++ b/src/encoding.cpp
@@ -197,7 +197,8 @@ static int write_ia_rest_downlink(const gprs_rlcmac_dl_tbf *tbf, bitvec * dest,
CHECK(rc);
/* RLC acknowledged mode */
- SET_0(dest); /* RLC_MODE */
+ rc = bitvec_set_bit(dest, (bit_value) RLC_MODE_ACKNOWLEDGED);
+ CHECK(rc);
rc = write_alpha_gamma(dest, alpha, gamma);
CHECK(rc);
@@ -668,7 +669,7 @@ void Encoding::write_packet_downlink_assignment(RlcMacDownlink_t * block,
}
block->u.Packet_Downlink_Assignment.MAC_MODE = 0x0; // Dynamic Allocation
- block->u.Packet_Downlink_Assignment.RLC_MODE = 0x0; // RLC acknowledged mode
+ block->u.Packet_Downlink_Assignment.RLC_MODE = RLC_MODE_ACKNOWLEDGED;
block->u.Packet_Downlink_Assignment.CONTROL_ACK = tbf->was_releasing; // NW establishes no new DL TBF for the MS with running timer T3192
block->u.Packet_Downlink_Assignment.TIMESLOT_ALLOCATION = 0; // timeslot(s)
for (tn = 0; tn < 8; tn++) {