diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-11-06 19:51:23 +0100 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2020-11-10 12:55:33 +0000 |
commit | 563bcd6cb5fd45107e758ea44a15ac8c8e867ff1 (patch) | |
tree | 87bfbd0c811578c130bd15d90deaa552c0fdecb3 /library/RLCMAC_EncDec.cc | |
parent | 5d07ae6d3c9defac28a31ba6cff0b2ecd4b59920 (diff) |
RLCMAC_EncDec: Fix encoding of TI and E bits in UlEgprsDataBlock
Change-Id: I442a12a16fe0d0664c677eec10bb81e2544235aa
Diffstat (limited to 'library/RLCMAC_EncDec.cc')
-rw-r--r-- | library/RLCMAC_EncDec.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/RLCMAC_EncDec.cc b/library/RLCMAC_EncDec.cc index 6b780647..d9001085 100644 --- a/library/RLCMAC_EncDec.cc +++ b/library/RLCMAC_EncDec.cc @@ -1181,7 +1181,6 @@ OCTETSTRING enc__RlcmacUlEgprsDataBlock(const RlcmacUlEgprsDataBlock& si) unsigned int data_block_bits, data_block_offsets[2]; unsigned int num_calls; CodingScheme mcs; - boolean tlli_ind, e; mcs = RLCMAC__Templates::f__rlcmac__cps__htype__to__mcs(in.mac__hdr().cps(), in.mac__hdr().header__type()); //fprintf(stderr, "RLCMAC: infered MCS %s (%d)\n", mcs.enum_to_str(static_cast<CodingScheme::enum_type>(mcs.as_int())), mcs.as_int()); @@ -1215,7 +1214,7 @@ OCTETSTRING enc__RlcmacUlEgprsDataBlock(const RlcmacUlEgprsDataBlock& si) } /* Put first TI + E byte */ - aligned_buffer.put_c(tlli_ind << 1 | e << 0); /* M=0, E=1 LEN=0 */ + aligned_buffer.put_c((in.tlli__ind() & 0x01) << 1 | (in.e() & 0x01) << 0); //printbuffer("After encoding first byte", aligned_buffer); if (in.e() == false) { |