Commit b301d12b authored by Raymond Knopp's avatar Raymond Knopp

getting SL-bandwidth in MAC

parent ab3ff7df
...@@ -728,6 +728,7 @@ rrc_mac_config_req_ue(module_id_t Mod_idP, ...@@ -728,6 +728,7 @@ rrc_mac_config_req_ue(module_id_t Mod_idP,
LOG_I(MAC,"Getting SL parameters\n"); LOG_I(MAC,"Getting SL parameters\n");
UE_mac_inst[Mod_idP].SL_Preconfiguration = SL_Preconfiguration_r12;
// SLSS // SLSS
UE_mac_inst[Mod_idP].slss.SL_OffsetIndicator = SL_Preconfiguration_r12->preconfigSync_r12.syncOffsetIndicator1_r12; UE_mac_inst[Mod_idP].slss.SL_OffsetIndicator = SL_Preconfiguration_r12->preconfigSync_r12.syncOffsetIndicator1_r12;
......
...@@ -3503,7 +3503,7 @@ SLSCH_t *ue_get_slsch(module_id_t module_idP,int CC_id,frame_t frameP,sub_frame_ ...@@ -3503,7 +3503,7 @@ SLSCH_t *ue_get_slsch(module_id_t module_idP,int CC_id,frame_t frameP,sub_frame_
slsch->n_pscch = ue->sourceL2Id; slsch->n_pscch = ue->sourceL2Id;
slsch->format = 0; slsch->format = 0;
slsch->freq_hopping_flag = 0; slsch->freq_hopping_flag = 0;
slsch->resource_block_coding = computeRIV(slsch->N_SL_RB_data,RB_start,L_CRBs); slsch->resource_block_coding = computeRIV(to_prb(ue->SL_Preconfiguration->preconfigGeneral_r12.sl_bandwidth_r12),RB_start,L_CRBs);
slsch->time_resource_pattern = 106; // all subframes for Nrp=8 slsch->time_resource_pattern = 106; // all subframes for Nrp=8
slsch->mcs = mcs; slsch->mcs = mcs;
slsch->timing_advance_indication = 0; slsch->timing_advance_indication = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment