aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlc.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-12-14 11:43:04 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-12-16 19:37:08 +0100
commitd87e1d6ab747423d3668c74d16201a5d967accf0 (patch)
tree6b37bcee7b3e4f0f9d2069cc12321887e971559b /src/rlc.cpp
parent61679251472391bf1746eb277b5027caa1ac14ad (diff)
rlc: Do not raise_v_q in receive_bsn
Currently gprs_rlc_ul_window::receive_bsn calls raise_v_q and returns the number of RLC data blocks that can be taken from the queue. This does not fit the EGPRS feature to put 2 independant data blocks in a single RLC block. This commit removes raise_v_q from receive_bsn, hence it must be called explicitely to get the number of processable data blocks. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/rlc.cpp')
-rw-r--r--src/rlc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rlc.cpp b/src/rlc.cpp
index 9f5c61d9..bafc56e7 100644
--- a/src/rlc.cpp
+++ b/src/rlc.cpp
@@ -220,10 +220,9 @@ uint16_t gprs_rlc_ul_window::raise_v_q()
return count;
}
-uint16_t gprs_rlc_ul_window::receive_bsn(const uint16_t bsn)
+void gprs_rlc_ul_window::receive_bsn(const uint16_t bsn)
{
m_v_n.mark_received(bsn);
raise_v_r(bsn);
- return raise_v_q();
}