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 <laforge@gnumonks.org>
Tested-by: Jenkins Builder
This commit is contained in:
Alexander Couzens 2016-05-24 16:55:30 +02:00 committed by Holger Freyther
parent d302e4fb28
commit 1a5066112f
1 changed files with 2 additions and 0 deletions

View File

@ -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 */