diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2013-12-11 18:52:42 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-12-18 12:09:47 +0100 |
commit | 15acdad0b6d7a3649ab9a70137a4c11a23599d16 (patch) | |
tree | 9a31679011231000e3a9adaf1a8c5715645a5a45 | |
parent | 2bf6f6e8759fdb8924ff9d7159197a2a340c4461 (diff) |
tbf: HACK: Drop every 10th UL DATA packet
-rw-r--r-- | src/tbf.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp index 6442108e..e96214bf 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -1553,12 +1553,21 @@ int gprs_rlcmac_tbf::extract_tlli(const uint8_t *data, const size_t len) int gprs_rlcmac_tbf::rcv_data_block_acknowledged(const uint8_t *data, size_t len, int8_t rssi) { + static int rx_packets = 0; struct rlc_ul_header *rh = (struct rlc_ul_header *)data; int rc; const uint16_t mod_sns = dir.ul.window.mod_sns(); const uint16_t ws = dir.ul.window.ws(); + rx_packets = (rx_packets + 1) % 10; + if (0) { //(rx_packets == 0) { + LOGP(DRLCMACUL, LOGL_DEBUG, "UL DATA TFI=%d losing (V(Q)=%d .. " + "V(R)=%d)\n", rh->tfi, this->dir.ul.window.v_q(), + this->dir.ul.window.v_r()); + return 0; + } + this->state_flags |= (1 << GPRS_RLCMAC_FLAG_UL_DATA); LOGP(DRLCMACUL, LOGL_DEBUG, "UL DATA TFI=%d received (V(Q)=%d .. " |