fix code review remarks
This commit is contained in:
committed by
Robert Schmidt
parent
e1b9881c78
commit
f46240ca2b
@@ -468,16 +468,18 @@ void term_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
|
|||||||
}
|
}
|
||||||
free_and_zero(ue->nr_gold_pdsch[0]);
|
free_and_zero(ue->nr_gold_pdsch[0]);
|
||||||
|
|
||||||
for (int gNB_id = 0; gNB_id < ue->n_connected_gNB; gNB_id++) {
|
for (int gNB_id = 0; gNB_id < ue->n_connected_gNB+1; gNB_id++) {
|
||||||
|
|
||||||
// PDSCH
|
// PDSCH
|
||||||
for (int th_id = 0; th_id < RX_NB_TH_MAX; th_id++) {
|
for (int th_id = 0; th_id < RX_NB_TH_MAX; th_id++) {
|
||||||
|
|
||||||
free_and_zero(ue->pdsch_vars[th_id][gNB_id]->llr_shifts);
|
free_and_zero(ue->pdsch_vars[th_id][gNB_id]->llr_shifts);
|
||||||
free_and_zero(ue->pdsch_vars[th_id][gNB_id]->llr128_2ndstream);
|
free_and_zero(ue->pdsch_vars[th_id][gNB_id]->llr128_2ndstream);
|
||||||
phy_term_nr_ue__PDSCH(ue->pdsch_vars[th_id][gNB_id], fp);
|
phy_term_nr_ue__PDSCH(ue->pdsch_vars[th_id][gNB_id], fp);
|
||||||
free_and_zero(ue->pdsch_vars[th_id][gNB_id]);
|
free_and_zero(ue->pdsch_vars[th_id][gNB_id]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int gNB_id = 0; gNB_id < ue->n_connected_gNB; gNB_id++) {
|
||||||
|
|
||||||
for (int th_id = 0; th_id < RX_NB_TH_MAX; th_id++) {
|
for (int th_id = 0; th_id < RX_NB_TH_MAX; th_id++) {
|
||||||
for (int i = 0; i < fp->nb_antennas_rx; i++) {
|
for (int i = 0; i < fp->nb_antennas_rx; i++) {
|
||||||
|
|||||||
@@ -316,12 +316,18 @@ typedef void(*aidftfunc_t)(int16_t *sigF,int16_t *sig,unsigned char scale_flag)
|
|||||||
#ifdef OAIDFTS_MAIN
|
#ifdef OAIDFTS_MAIN
|
||||||
|
|
||||||
#define SZ_PTR(Sz) {dft ## Sz,Sz},
|
#define SZ_PTR(Sz) {dft ## Sz,Sz},
|
||||||
struct {adftfunc_t func; int size;} dft_ftab[]={
|
struct {
|
||||||
|
adftfunc_t func;
|
||||||
|
int size;
|
||||||
|
} dft_ftab[]= {
|
||||||
FOREACH_DFTSZ(SZ_PTR)
|
FOREACH_DFTSZ(SZ_PTR)
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SZ_iPTR(Sz) {idft ## Sz,Sz},
|
#define SZ_iPTR(Sz) {idft ## Sz,Sz},
|
||||||
struct {adftfunc_t func; int size;} idft_ftab[]={
|
struct {
|
||||||
|
adftfunc_t func;
|
||||||
|
int size;
|
||||||
|
} idft_ftab[]= {
|
||||||
FOREACH_IDFTSZ(SZ_iPTR)
|
FOREACH_IDFTSZ(SZ_iPTR)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -519,4 +519,7 @@ bool nr_find_nb_rb(uint16_t Qm,
|
|||||||
void nr_sr_reporting(int Mod_idP, frame_t frameP, sub_frame_t slotP);
|
void nr_sr_reporting(int Mod_idP, frame_t frameP, sub_frame_t slotP);
|
||||||
|
|
||||||
void dump_mac_stats(gNB_MAC_INST *gNB, char *output, int strlen, bool reset_rsrp);
|
void dump_mac_stats(gNB_MAC_INST *gNB, char *output, int strlen, bool reset_rsrp);
|
||||||
|
|
||||||
|
void process_CellGroup(NR_CellGroupConfig_t *CellGroup, NR_UE_sched_ctrl_t *sched_ctrl);
|
||||||
|
|
||||||
#endif /*__LAYER2_NR_MAC_PROTO_H__*/
|
#endif /*__LAYER2_NR_MAC_PROTO_H__*/
|
||||||
|
|||||||
Reference in New Issue
Block a user