add assert in a case of wrong gNB configuration file
This commit is contained in:
@@ -1160,6 +1160,7 @@ uint32_t get_ssb_offset_to_pointA(uint32_t absoluteFrequencySSB,
|
|||||||
const int ssb_offset_point_a = ((scaled_abs_diff / 12) - 10) * scaling;
|
const int ssb_offset_point_a = ((scaled_abs_diff / 12) - 10) * scaling;
|
||||||
// Offset to point A needs to be divisible by scaling
|
// Offset to point A needs to be divisible by scaling
|
||||||
AssertFatal(ssb_offset_point_a % scaling == 0, "PRB offset %d not valid for scs %d\n", ssb_offset_point_a, ssbSubcarrierSpacing);
|
AssertFatal(ssb_offset_point_a % scaling == 0, "PRB offset %d not valid for scs %d\n", ssb_offset_point_a, ssbSubcarrierSpacing);
|
||||||
|
AssertFatal(ssb_offset_point_a >= 0, "ssb offset is negative %d for scs %d\n", ssb_offset_point_a, ssbSubcarrierSpacing);
|
||||||
return ssb_offset_point_a;
|
return ssb_offset_point_a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user