aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tbf/TbfTest.cpp
diff options
context:
space:
mode:
authoraravind sirsikar <arvind.sirsikar@radisys.com>2016-11-02 15:48:00 +0530
committeraravind sirsikar <arvind.sirsikar@radisys.com>2016-11-02 15:48:00 +0530
commitfb41afaaf69f1abeb56b1d95c0c707448e209b70 (patch)
treeaaf1f9c0a53e06738435d74ef6e67b07763c329f /tests/tbf/TbfTest.cpp
parent9434e52af988cf724b1974a3911f46d14e6f4846 (diff)
EGPRS: fix for EPDAN out of window
Fix alignment of EPDAN outside the RLC transmit window, according to section 9.1.8.2.4 in 44.060 version 7.27.0 Release 7. The specification explains that a bit within the uncompressed bitmap whose corresponding BSN is not within the transmit window shall be ignored. Without this fix PCU was dropping the EPDAN message and not updating the status of BSNs which are inside the RLC window. This patch updates the status of the BSNs which are inside the window and ignores the remaining bits. Related: OS#1789 Change-Id: Id07d178970f168f5389016c1eea31eb6b82057b6
Diffstat (limited to 'tests/tbf/TbfTest.cpp')
-rw-r--r--tests/tbf/TbfTest.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index 8fb8bfe9..cc483926 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -2101,17 +2101,11 @@ static void test_tbf_epdan_out_of_rx_window(void)
dl_tbf->rcvd_dl_ack(
ack_nack->EGPRS_AckNack.Desc.FINAL_ACK_INDICATION,
bsn_begin, &bits);
- /*
- * TODO:status of BSN:1176,1177 shall be invalid
- * status of BSN:1286,1287 shall be acked.
- * both condition fails because of existing bug. Which shall be
- * fixed in subsequent commit
- */
- OSMO_ASSERT(prlcmvb->is_unacked(1176));
- OSMO_ASSERT(prlcmvb->is_unacked(1177));
- OSMO_ASSERT(prlcmvb->is_unacked(1286));
- OSMO_ASSERT(prlcmvb->is_unacked(1287));
+ OSMO_ASSERT(prlcmvb->is_invalid(1176));
+ OSMO_ASSERT(prlcmvb->is_invalid(1177));
+ OSMO_ASSERT(prlcmvb->is_acked(1286));
+ OSMO_ASSERT(prlcmvb->is_acked(1287));
bitvec_free(block);
tbf_free(dl_tbf);