nr rlc: harmonize computation of sn_count
Functions generate_missing() and missing_size() had different computations of sn_count. Not sure if it is a problem or not, but let's do the same in both functions. Hopefully the computation is correct.
This commit is contained in:
@@ -1305,9 +1305,8 @@ static int missing_size(nr_rlc_entity_am_t *entity, missing_data_t *m,
|
|||||||
missing_data_t m_nack;
|
missing_data_t m_nack;
|
||||||
|
|
||||||
/* be careful to limit a range to 255 SNs, that is: cut if needed */
|
/* be careful to limit a range to 255 SNs, that is: cut if needed */
|
||||||
sn_count = m->sn_end - m->sn_start + 1;
|
sn_count = (m->sn_end - m->sn_start + entity->sn_modulus)
|
||||||
if (sn_count < 0)
|
% entity->sn_modulus + 1;
|
||||||
sn_count += entity->sn_modulus;
|
|
||||||
|
|
||||||
sn_start = m->sn_start;
|
sn_start = m->sn_start;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user