This commit is contained in:
2026-02-04 17:20:40 +09:00
parent 312d75d759
commit 5874aa1fe7
7 changed files with 450 additions and 154 deletions
@@ -202,17 +202,13 @@ uint16_t get_pm_index(const gNB_MAC_INST *nrmac,
}
nr_antenna_state_t* ant_state = nrmac->antenna_state;
if (ant_state) {
int active_tx = nr_get_active_tx_antenna_count(ant_state);
int configured_tx = ant_state->num_tx_antennas;
if (nr_is_in_recovery_mode(ant_state)) {
LOG_D(NR_MAC, "[ANTENNA_MUTE] Recovery mode active, using identity matrix\n");
return 0;
}
if (active_tx < configured_tx && layers < configured_tx) {
LOG_D(NR_MAC, "[ANTENNA_MUTE] Using identity matrix: %d/%d TX antennas active, %d layers\n",
active_tx, configured_tx, layers);
return 0;
}
// Don't fall back to identity matrix for muted antennas.
// Antenna muting is handled at RU level (nr_feptx zeros muted antenna buffers).
// Using proper precoding ensures data reaches all active antennas.
}
const int report_id = sched_ctrl->CSI_report.cri_ri_li_pmi_cqi_report.csi_report_id;