Commit ba122c9c authored by rmagueta's avatar rmagueta

Fix max_association_period for FDD

parent 3c9ca366
...@@ -215,7 +215,7 @@ void find_SSB_and_RO_available(module_id_t module_idP) { ...@@ -215,7 +215,7 @@ void find_SSB_and_RO_available(module_id_t module_idP) {
} }
cc->total_prach_occasions_per_config_period = total_RA_occasions; cc->total_prach_occasions_per_config_period = total_RA_occasions;
for(int i=1; (1 << (i-1)) < max_association_period; i++) { for(int i=1; (1 << (i-1)) <= max_association_period; i++) {
cc->max_association_period = (1 <<(i-1)); cc->max_association_period = (1 <<(i-1));
total_RA_occasions = total_RA_occasions * cc->max_association_period; total_RA_occasions = total_RA_occasions * cc->max_association_period;
if(total_RA_occasions >= (int) (num_active_ssb/num_ssb_per_RO)) { if(total_RA_occasions >= (int) (num_active_ssb/num_ssb_per_RO)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment