bugfix: wrong CCE allocation
We have to not only ensure that the CCE is free but also that it's below the number of availables CCEs with respect to the current PDCCH size.
This commit is contained in:
@@ -2653,7 +2653,8 @@ int get_nCCE_offset_l1(int *CCE_table,
|
||||
search_space_free = 1;
|
||||
|
||||
for (l=0; l<L; l++) {
|
||||
if (CCE_table[(((Yk+m)%(nCCE/L))*L) + l] == 1) {
|
||||
int cce = (((Yk+m)%(nCCE/L))*L) + l;
|
||||
if (cce >= nCCE || CCE_table[cce] == 1) {
|
||||
search_space_free = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -990,7 +990,8 @@ int get_nCCE_offset(int *CCE_table,
|
||||
search_space_free = 1;
|
||||
|
||||
for (l=0; l<L; l++) {
|
||||
if (CCE_table[(((Yk+m)%(nCCE/L))*L) + l] == 1) {
|
||||
int cce = (((Yk+m)%(nCCE/L))*L) + l;
|
||||
if (cce >= nCCE || CCE_table[cce] == 1) {
|
||||
search_space_free = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user