bts: Count the number of llc frames that were "scheduled" to be sent
This does not mean that they have been successfully transferred
to the SGSN/MS but at least that they have reached a certain point
in the message flow.
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 2310f85..aa0f223 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -101,6 +101,7 @@
#warning "verify that m_llc.index/length is 0... check the state change"
bts->tbf_reused();
m_llc.put_frame(data, len);
+ bts->llc_frame_sched();
/* reset rlc states */
memset(&dir.dl, 0, sizeof(dir.dl));
/* keep to flags */
@@ -190,6 +191,7 @@
/* new TBF, so put first frame */
tbf->m_llc.put_frame(data, len);
+ tbf->bts->llc_frame_sched();
/* Store IMSI for later look-up and PCH retransmission */
tbf->assign_imsi(imsi);
@@ -695,7 +697,7 @@
LOGP(DRLCMACDL, LOGL_NOTICE, "%s Discarding LLC PDU "
"because lifetime limit reached\n",
tbf_name(this));
- bts->timedout_frame();
+ bts->llc_timedout_frame();
frames++;
octets += msg->len;
msgb_free(msg);
@@ -1083,6 +1085,7 @@
LOGP(DRLCMACDL, LOGL_INFO, "- Dequeue next LLC for "
"%s (len=%d)\n", tbf_name(this), msg->len);
m_llc.put_frame(msg->data, msg->len);
+ bts->llc_frame_sched();
msgb_free(msg);
}
/* if we have more data and we have space left */
@@ -1538,6 +1541,7 @@
}
#warning "Copy and paste on the sender path"
m_llc.put_frame(msg->data, msg->len);
+ bts->llc_frame_sched();
msgb_free(msg);
/* we have a message, so we trigger downlink assignment, and there