aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_ms.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-04 17:46:33 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-08 09:40:48 +0200
commit8158ea7288f57d7bc66d8ccd1c278999fd656076 (patch)
treeb6e7a15d91b48afc2ac7559d1a27ebab33cb4ee1 /src/gprs_ms.h
parent144a1d0516187d09f80c8b9125c6e51b4988503f (diff)
ms: Add blocking period for CS upgrade
Currently the CS level is immediately increased if the error rate drops below the lower threshold. Since the measurement values are not damped, this behaviour leads to a quick return to higher CS values even under bad radio conditions. Since with GPRS RLC/MAC blocks cannot be resent with another coding scheme, increasing the CS value should be done carefully. This commit adds a blocking period that only allows higher CS values if all error rate measurements were below the LOW threshold for a certain amount of time (currently fixed to 1s). Ticket: #1674 Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gprs_ms.h')
-rw-r--r--src/gprs_ms.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gprs_ms.h b/src/gprs_ms.h
index 27c4be40..90b81fee 100644
--- a/src/gprs_ms.h
+++ b/src/gprs_ms.h
@@ -130,6 +130,8 @@ private:
LListHead<GprsMs> m_list;
struct osmo_timer_list m_timer;
unsigned m_delay;
+
+ int64_t m_last_cs_not_low;
};
inline uint32_t GprsMs::tlli() const