demoting to LOG_D another log that otherwise would be printed too many times at the UE because of periodic calling of to_nrarfcn
This commit is contained in:
+19
-12
@@ -538,29 +538,36 @@ int32_t get_delta_duplex(int nr_bandP, uint8_t scs_index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Returns the corresponding row index of the NR table
|
// Returns the corresponding row index of the NR table
|
||||||
int get_nr_table_idx(int nr_bandP, uint8_t scs_index) {
|
int get_nr_table_idx(int nr_bandP, uint8_t scs_index)
|
||||||
|
{
|
||||||
int scs_khz = 15 << scs_index;
|
int scs_khz = 15 << scs_index;
|
||||||
int supplementary_bands[] = {29,75,76,80,81,82,83,84,86,89,95};
|
int supplementary_bands[] = {29, 75, 76, 80, 81, 82, 83, 84, 86, 89, 95};
|
||||||
for(int j = 0; j < sizeofArray(supplementary_bands); j++){
|
for(int j = 0; j < sizeofArray(supplementary_bands); j++) {
|
||||||
if (nr_bandP == supplementary_bands[j])
|
AssertFatal(nr_bandP != supplementary_bands[j],
|
||||||
AssertFatal(0 == 1, "Band %d is a supplementary band (%d). This is not supported yet.\n", nr_bandP, supplementary_bands[j]);
|
"Band %d is a supplementary band (%d). This is not supported yet.\n",
|
||||||
|
nr_bandP,
|
||||||
|
supplementary_bands[j]);
|
||||||
}
|
}
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < sizeofArray(nr_bandtable); i++) {
|
for (i = 0; i < sizeofArray(nr_bandtable); i++) {
|
||||||
if ( nr_bandtable[i].band == nr_bandP && nr_bandtable[i].deltaf_raster == scs_khz )
|
if (nr_bandtable[i].band == nr_bandP && nr_bandtable[i].deltaf_raster == scs_khz)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == sizeofArray(nr_bandtable)) {
|
if (i == sizeofArray(nr_bandtable)) {
|
||||||
LOG_I(PHY, "not found same deltaf_raster == scs_khz, use only band and last deltaf_raster \n");
|
LOG_D(PHY, "Not found same deltaf_raster == scs_khz, use only band and last deltaf_raster \n");
|
||||||
for(i=sizeofArray(nr_bandtable)-1; i >=0; i--)
|
for(i = sizeofArray(nr_bandtable) - 1; i >= 0; i--)
|
||||||
if ( nr_bandtable[i].band == nr_bandP )
|
if (nr_bandtable[i].band == nr_bandP)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
AssertFatal(i >= 0 && i < sizeofArray(nr_bandtable), "band is not existing: %d\n",nr_bandP);
|
AssertFatal(i >= 0 && i < sizeofArray(nr_bandtable), "band is not existing: %d\n", nr_bandP);
|
||||||
LOG_D(PHY, "NR band table index %d (Band %d, dl_min %lu, ul_min %lu)\n", i, nr_bandtable[i].band, nr_bandtable[i].dl_min,nr_bandtable[i].ul_min);
|
LOG_D(PHY,
|
||||||
|
"NR band table index %d (Band %d, dl_min %lu, ul_min %lu)\n",
|
||||||
|
i,
|
||||||
|
nr_bandtable[i].band,
|
||||||
|
nr_bandtable[i].dl_min,
|
||||||
|
nr_bandtable[i].ul_min);
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user