diff options
author | Aravind Sirsikar <Arvind.Sirsikar@radisys.com> | 2016-08-25 16:40:23 +0530 |
---|---|---|
committer | Aravind Sirsikar <Arvind.Sirsikar@radisys.com> | 2016-08-25 16:40:23 +0530 |
commit | eebcb1e3e87a37cde3ac6aaf89b8c6c201abb6ba (patch) | |
tree | aa0c91dcbae7da37a8b4fdd7fd5a6ded0bbc97f0 /src | |
parent | 02352b487ac6808b6adb8e8623f0921aad7f02d7 (diff) |
Fix EGPRS PUAN encoding: use correct urbb_len
Earlier there was an incorrect encoding of PUAN when VQ is not equal
VR case for EGPRS UL RLC window. The PCU was encoding the same PUAN
message always irrespective of radio condition. This was a bottle neck
for performance testing. Which has been fixed in this patch.
Related: OS#1793
unit test assertion in the previous commit is fixed in this patch.
Change-Id: Iba7b1995028bd81749ffb080616b2ad5f2540d57
Diffstat (limited to 'src')
-rw-r--r-- | src/encoding.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoding.cpp b/src/encoding.cpp index 63049ac3..41e0d105 100644 --- a/src/encoding.cpp +++ b/src/encoding.cpp @@ -575,7 +575,8 @@ static void write_packet_ack_nack_desc_egprs( eow = false; urbb_len = rest_bits - 9; /* TODO: use compression (see above) */ - } + } else + urbb_len = num_blocks; if (urbb_len + crbb_len == rest_bits) len = -1; |