nr,rlc: call bsr update callback in RLC UM NR

This commit is contained in:
Francisco 2021-10-26 09:51:19 +01:00 committed by Ismael Gomez
parent 7ad1ad800e
commit 529e2bdf55
1 changed files with 6 additions and 1 deletions

View File

@ -84,8 +84,13 @@ uint32_t rlc_um_nr::rlc_um_nr_tx::get_buffer_state()
}
// Room needed for fixed header?
if (n_bytes > 0)
if (n_bytes > 0) {
n_bytes += (cfg.um.is_mrb) ? 2 : 3;
}
if (bsr_callback) {
bsr_callback(parent->get_lcid(), n_bytes, 0);
}
return n_bytes;
}