From 1a5066112f39066eac78061de1301cc861aaac45 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 24 May 2016 16:55:30 +0200 Subject: tbf_dl: comment why we sent a dummy LLC packets to delay the release of the TBF Change-Id: I1862674437dffef4de3ffa7b183ecf690020b0ec Reviewed-on: https://gerrit.osmocom.org/143 Reviewed-by: Harald Welte Tested-by: Jenkins Builder --- src/tbf_dl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index da6628a..0cd6b76 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -515,6 +515,8 @@ int gprs_rlcmac_dl_tbf::create_new_bsn(const uint32_t fn, GprsCodingScheme cs) bool is_final; if (m_llc.frame_length() == 0) { + /* nothing to sent - delay the release of the TBF */ + int space = block_data_len - write_offset; /* A header will need to by added, so we just need * space-1 octets */ -- cgit v1.2.3