Print gNB MAC stats in phy-test mode as well
There is no PRACH, so the condition to print stats would never be
reached.
Fixes: 0301b239a2 ("print stats only after scheduler started")
This commit is contained in:
@@ -195,7 +195,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP, frame_t frame, slot_t slo
|
||||
}
|
||||
|
||||
bool wait_prach_completed = gNB->num_scheduled_prach_rx >= NUM_PRACH_RX_FOR_NOISE_ESTIMATE;
|
||||
if (wait_prach_completed && (slot == 0) && (frame & 127) == 0) {
|
||||
if ((wait_prach_completed || get_softmodem_params()->phy_test) && (slot == 0) && (frame & 127) == 0) {
|
||||
char stats_output[32656] = {0};
|
||||
dump_mac_stats(gNB, stats_output, sizeof(stats_output), true);
|
||||
LOG_I(NR_MAC, "Frame.Slot %d.%d\n%s\n", frame, slot, stats_output);
|
||||
|
||||
Reference in New Issue
Block a user