aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.cpp
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2014-06-04 14:56:09 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-06-04 17:14:22 +0200
commit1e0c61032fbccc6bd4b1fbd89765f125643e79c3 (patch)
treeb4a6caf7cea3596c2bc6d5b1ea0c1ee6b7f68b90 /src/bts.cpp
parentcf1fae7f383b9166a7cce0cbe0b9c11d165fc4ba (diff)
gprs_rlcmac_pdch: Don't access private members
This patch introduces methods to get ul and dl tbf by tfi and uses them in gprs_rlcmac_sched. Sponsored by: On-Waves ehf
Diffstat (limited to 'src/bts.cpp')
-rw-r--r--src/bts.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index 9003099a..3ca3628e 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -990,3 +990,17 @@ int gprs_rlcmac_pdch::rcv_block(uint8_t *data, uint8_t len, uint32_t fn, int8_t
return rc;
}
+
+struct gprs_rlcmac_tbf *gprs_rlcmac_pdch::ul_tbf_by_tfi(uint8_t tfi)
+{
+ if (tfi >= ARRAY_SIZE(ul_tbf))
+ return NULL;
+ return ul_tbf[tfi];
+}
+
+struct gprs_rlcmac_tbf *gprs_rlcmac_pdch::dl_tbf_by_tfi(uint8_t tfi)
+{
+ if (tfi >= ARRAY_SIZE(dl_tbf))
+ return NULL;
+ return dl_tbf[tfi];
+}