aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-03 15:26:29 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-08 00:45:40 +0100
commit14e26cbca3d4fe5b7e7e6729e12708555ddb3a41 (patch)
tree93ecc1fe8d687e1f55bbd5249bc4ece450448bf5 /src
parent2d2efb13e7232bd1f1dc5ccc1633b01ceb256c0b (diff)
ms: Fix GprsMs::current_cs_dl()
Currently the queue length is overwritten by the remaining chunk length, which should be added instead. This may result in a lower CS/MCS value than expected. Add the chunk length instead if the TBF is present. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src')
-rw-r--r--src/gprs_ms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs_ms.cpp b/src/gprs_ms.cpp
index f522586..78f03f8 100644
--- a/src/gprs_ms.cpp
+++ b/src/gprs_ms.cpp
@@ -706,7 +706,7 @@ GprsCodingScheme GprsMs::current_cs_dl() const
/* If the DL TBF is active, add number of unencoded chunk octets */
if (m_dl_tbf)
- unencoded_octets = m_dl_tbf->m_llc.chunk_size();
+ unencoded_octets += m_dl_tbf->m_llc.chunk_size();
/* There are many unencoded octets, don't reduce */
if (unencoded_octets >= m_bts->bts_data()->cs_downgrade_threshold)