RLCMAC_EncDec: Fix Encoding of TLLI in UlEgprsDataBlock

Change-Id: If13f36db9c86c10d7c5a6a307c430ee090b7dd06
This commit is contained in:
Pau Espin 2020-11-06 20:38:21 +01:00 committed by pespin
parent 081b168060
commit a05b2bc8a3
1 changed files with 7 additions and 1 deletions

View File

@ -1291,7 +1291,13 @@ OCTETSTRING enc__RlcmacUlEgprsDataBlock(const RlcmacUlEgprsDataBlock& si)
if (in.tlli__ind()) {
aligned_buffer.put_string(in.tlli());
/* The TLLI is encoded in little endian for EGPRS (see
* TS 44.060, figure 10.3a.2.1, note 2) */
OCTETSTRING tlli = in.tlli();
aligned_buffer.put_c(tlli[3].get_octet());
aligned_buffer.put_c(tlli[2].get_octet());
aligned_buffer.put_c(tlli[1].get_octet());
aligned_buffer.put_c(tlli[0].get_octet());
}
if (in.mac__hdr().pfi__ind()) {