@@ -337,7 +337,7 @@ dl_harq_process* ue_fallback_scheduler::schedule_srb0(ue& u
337337
338338 if (mcs_idx > expert_cfg.max_msg4_mcs ) {
339339 logger.debug (" rnti={}: Postponing SRB0 PDU allocation. Cause: MCS index chosen ({}) for SRB0 exceeds maximum"
340- " allowed MCS index ({})" ,
340+ " allowed MCS index ({})" ,
341341 u.crnti ,
342342 mcs_idx,
343343 expert_cfg.max_msg4_mcs );
@@ -567,68 +567,6 @@ dl_harq_process* ue_fallback_scheduler::schedule_srb1(ue& u
567567 return h_dl;
568568}
569569
570- void ue_fallback_scheduler::fill_srb0_grant (ue& u,
571- slot_point pdsch_slot,
572- dl_harq_process& h_dl,
573- pdcch_dl_information& pdcch,
574- dl_msg_alloc& msg,
575- unsigned pucch_res_indicator,
576- unsigned pdsch_time_res,
577- unsigned k1,
578- sch_mcs_index mcs_idx,
579- const crb_interval& ue_grant_crbs,
580- const pdsch_config_params& pdsch_params,
581- unsigned tbs_bytes,
582- bool is_retx)
583- {
584- // Allocate DL HARQ.
585- // NOTE: We do not multiplex the SRBO PUCCH with existing PUCCH HARQs, thus both DAI and HARQ-ACK bit index are 0.
586- if (not is_retx) {
587- const bool is_fallback = true ;
588- static constexpr uint8_t srb0_dai = 0 ;
589- h_dl.new_tx (pdsch_slot,
590- k1,
591- expert_cfg.max_nof_harq_retxs ,
592- srb0_dai,
593- u.get_pcell ().channel_state_manager ().get_wideband_cqi (),
594- u.get_pcell ().channel_state_manager ().get_nof_dl_layers (),
595- is_fallback);
596- } else {
597- const unsigned harq_bit_idx = 0U ;
598- h_dl.new_retx (pdsch_slot, k1, harq_bit_idx);
599- }
600-
601- // Fill DL PDCCH DCI.
602- static const uint8_t msg4_rv = 0 ;
603- build_dci_f1_0_tc_rnti (pdcch.dci ,
604- cell_cfg.dl_cfg_common .init_dl_bwp ,
605- ue_grant_crbs,
606- pdsch_time_res,
607- k1,
608- pucch_res_indicator,
609- mcs_idx,
610- msg4_rv,
611- h_dl);
612-
613- // Fill PDSCH PDU.
614- msg.context .ue_index = u.ue_index ;
615- msg.context .k1 = k1;
616- msg.context .ss_id = pdcch.ctx .context .ss_id ;
617- msg.context .nof_retxs = h_dl.tb (0 ).nof_retxs ;
618- msg.context .olla_offset = 0 ;
619- build_pdsch_f1_0_tc_rnti (
620- msg.pdsch_cfg , pdsch_params, tbs_bytes, u.crnti , cell_cfg, pdcch.dci .tc_rnti_f1_0 , ue_grant_crbs, not is_retx);
621-
622- if (not is_retx) {
623- // Set MAC logical channels to schedule in this PDU.
624- u.build_dl_fallback_transport_block_info (
625- msg.tb_list .emplace_back (), msg.pdsch_cfg .codewords [0 ].tb_size_bytes , true );
626- }
627-
628- // Save in HARQ the parameters set for this PDCCH and PDSCH PDUs.
629- h_dl.save_alloc_params (pdcch.dci .type , msg.pdsch_cfg );
630- }
631-
632570void ue_fallback_scheduler::fill_srb_grant (ue& u,
633571 slot_point pdsch_slot,
634572 dl_harq_process& h_dl,
0 commit comments