mirror of https://github.com/PentHertz/srsLTE.git
Fix LDPC RM number of useful iterations
This commit is contained in:
parent
3568f633c3
commit
392a8cc1b6
|
@ -687,5 +687,5 @@ int srsran_ldpc_rm_rx_c(srsran_ldpc_rm_t* q,
|
|||
}
|
||||
|
||||
// Return the number of useful LLR
|
||||
return (int)((q->k0 + q->E) % q->Ncb);
|
||||
return (int)SRSRAN_MIN(q->k0 + q->E, q->Ncb);
|
||||
}
|
||||
|
|
|
@ -546,7 +546,7 @@ int main(int argc, char** argv)
|
|||
lift_size,
|
||||
rv,
|
||||
mod_type,
|
||||
Nref)) {
|
||||
Nref) < 0) {
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue