diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-09-01 11:20:29 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-09-01 11:49:04 +0200 |
commit | 91ff7d1864f0248ab5f45047069c09d7843212ca (patch) | |
tree | 48ace6cb13ba8df31b63a0c50f134bb985fc7a5c /src/tbf.h | |
parent | 9659d593073dfb6711f2ed9ad7bee4ca454db784 (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |