aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-09-01 11:20:29 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-09-01 11:49:04 +0200
commit91ff7d1864f0248ab5f45047069c09d7843212ca (patch)
tree48ace6cb13ba8df31b63a0c50f134bb985fc7a5c /src/tbf.h
parent9659d593073dfb6711f2ed9ad7bee4ca454db784 (diff)
tbf: Refactor reuse_tbf into releasing and DL TBF establishment
Currently reuse_tbf (partly) resets the old DL TBF and uses its PACCH to establish a new DL TBF. The method can not be used with UL TBFs. This commit replaces the reuse_tbf method into a gprs_rlcmac_dl_tbf:release method which triggers the TBF's timer based deletion (so that the TFI is still reserved for some time) and a gprs_rlcmac_tbf::establish_dl_tbf_on_pacch which can establish DL TBFs on existing PACCHs of either DL or UL TBFs. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tbf.h b/src/tbf.h
index b35ea784..3619910e 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -137,6 +137,7 @@ struct gprs_rlcmac_tbf {
void handle_timeout();
void stop_timer();
void stop_t3191();
+ int establish_dl_tbf_on_pacch();
void poll_timeout();
@@ -337,6 +338,7 @@ struct gprs_rlcmac_dl_tbf : public gprs_rlcmac_tbf {
int frames_since_last_poll(unsigned fn) const;
int frames_since_last_drain(unsigned fn) const;
bool keep_open(unsigned fn) const;
+ int release();
bool is_control_ts(uint8_t ts) const {
return ts == control_ts;