aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-04 18:13:16 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-18 12:09:47 +0100
commitefe4ac4384a54863d051fea3258d827147e371b6 (patch)
tree3b078834b8ac891ece789f37a6e68d7921814478
parent309638f1c0dfc706bfcd5b999af2003d7aacb76c (diff)
HACKs/wip
-rw-r--r--src/gprs_bssgp_pcu.cpp3
-rw-r--r--src/tbf.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index 133eb97..93069ad 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 e96214b..4c32ed4 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());