From efe4ac4384a54863d051fea3258d827147e371b6 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 4 Dec 2013 18:13:16 +0100 Subject: HACKs/wip --- src/gprs_bssgp_pcu.cpp | 3 ++- src/tbf.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp index 133eb972..93069adb 100644 --- a/src/gprs_bssgp_pcu.cpp +++ b/src/gprs_bssgp_pcu.cpp @@ -429,7 +429,8 @@ int gprs_bssgp_tx_fc_bvc(void) return -EIO; } /* FIXME: use real values */ - return bssgp_tx_fc_bvc(the_pcu.bctx, 1, 6553500, 819100, 50000, 50000, + printf("FOR FLOW CONTROL: %zu\n", the_pcu.bts->bts->dl_octets_sent_reset()); + return bssgp_tx_fc_bvc(the_pcu.bctx, 1, 6553500, 400 / 8, 50000, 400 / 8, NULL, NULL); } diff --git a/src/tbf.cpp b/src/tbf.cpp index e96214bf..4c32ed4f 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -960,6 +960,7 @@ struct msgb *gprs_rlcmac_tbf::create_new_bsn(const uint32_t fn, const uint8_t ts "%s that fits precisely in last block: " "len=%d\n", tbf_name(this), m_llc.frame_length()); gprs_rlcmac_dl_bw(this, m_llc.frame_length()); + bts->dl_octets_sent(m_llc.frame_length()); /* block is filled, so there is no extension */ *e_pointer |= 0x01; /* fill space */ @@ -1017,6 +1018,7 @@ struct msgb *gprs_rlcmac_tbf::create_new_bsn(const uint32_t fn, const uint8_t ts LOGP(DRLCMACDL, LOGL_INFO, "Complete DL frame for %s" "len=%d\n", tbf_name(this), m_llc.frame_length()); gprs_rlcmac_dl_bw(this, m_llc.frame_length()); + bts->dl_octets_sent(m_llc.frame_length()); m_llc.reset(); /* dequeue next LLC frame, if any */ msg = llc_dequeue(gprs_bssgp_pcu_current_bctx()); -- cgit v1.2.3