mirror of https://github.com/PentHertz/srsLTE.git
rlc_um_nr: fix has_missing_byte_segment() routine
return true if rx_window contains segment of this SN
This commit is contained in:
parent
5b025cfbf8
commit
6d0aafcf69
|
@ -319,8 +319,8 @@ void rlc_um_nr::rlc_um_nr_rx::timer_expired(uint32_t timeout_id)
|
||||||
|
|
||||||
// check start of t_reassembly
|
// check start of t_reassembly
|
||||||
if (RX_MOD_NR_BASE(RX_Next_Highest) > RX_MOD_NR_BASE(RX_Next_Reassembly + 1) ||
|
if (RX_MOD_NR_BASE(RX_Next_Highest) > RX_MOD_NR_BASE(RX_Next_Reassembly + 1) ||
|
||||||
(RX_MOD_NR_BASE(RX_Next_Highest) == RX_MOD_NR_BASE(RX_Next_Reassembly + 1) &&
|
((RX_MOD_NR_BASE(RX_Next_Highest) == RX_MOD_NR_BASE(RX_Next_Reassembly + 1) &&
|
||||||
has_missing_byte_segment(RX_Next_Reassembly))) {
|
has_missing_byte_segment(RX_Next_Reassembly)))) {
|
||||||
reassembly_timer.run();
|
reassembly_timer.run();
|
||||||
RX_Timer_Trigger = RX_Next_Highest;
|
RX_Timer_Trigger = RX_Next_Highest;
|
||||||
}
|
}
|
||||||
|
@ -366,7 +366,7 @@ bool rlc_um_nr::rlc_um_nr_rx::has_missing_byte_segment(const uint32_t sn)
|
||||||
{
|
{
|
||||||
// is at least one missing byte segment of the RLC SDU associated with SN = RX_Next_Reassembly before the last byte of
|
// is at least one missing byte segment of the RLC SDU associated with SN = RX_Next_Reassembly before the last byte of
|
||||||
// all received segments of this RLC SDU
|
// all received segments of this RLC SDU
|
||||||
return true;
|
return (rx_window.find(sn) != rx_window.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sect 5.2.2.2.3
|
// Sect 5.2.2.2.3
|
||||||
|
|
Loading…
Reference in New Issue