@@ -447,10 +447,12 @@ uplink_config srsran::config_helpers::make_default_ue_uplink_config(const cell_c
447447 // TODO: add more PUCCH resources.
448448
449449 // >>> SR Resources.
450+ // Use 40msec SR period by default.
451+ unsigned sr_period = get_nof_slots_per_subframe (params.scs_common ) * 40 ;
450452 pucch_cfg.sr_res_list .push_back (
451453 scheduling_request_resource_config{.sr_res_id = 1 ,
452454 .sr_id = uint_to_sched_req_id (0 ),
453- .period = sr_periodicity::sl_40 ,
455+ .period = ( sr_periodicity)sr_period ,
454456 .offset = 0 ,
455457 .pucch_res_id = (unsigned )pucch_cfg.pucch_res_list .size () - 1U });
456458
@@ -581,7 +583,7 @@ csi_report_config srsran::config_helpers::make_default_csi_report_config(const c
581583 report_cfg_type.report_type = csi_report_config::periodic_or_semi_persistent_report_on_pucch::report_type_t ::periodic;
582584 // Note: the period for reporting is directly proportional to the number of CSI-RS resources available, and,
583585 // therefore, to the number of UEs supported by the gNB.
584- report_cfg_type.report_slot_period = csi_report_periodicity::slots80 ;
586+ report_cfg_type.report_slot_period = ( csi_report_periodicity)( get_nof_slots_per_subframe (params. scs_common ) * 80 ) ;
585587 report_cfg_type.report_slot_offset = 9 ;
586588 report_cfg_type.pucch_csi_res_list .push_back (
587589 csi_report_config::pucch_csi_resource{.ul_bwp = to_bwp_id (0 ), .pucch_res_id = 9 });
0 commit comments