Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
2543b9e0
Commit
2543b9e0
authored
Nov 02, 2023
by
Marwan Hammouda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes to run ulpc module with sa mode
parent
edf4fdca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+3
-0
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+10
-9
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
2543b9e0
...
...
@@ -742,7 +742,10 @@ void nr_rrc_mac_config_req_sib1(module_id_t module_id,
// configure BWP only if it is a SIB1 detection in non connected state (after sync)
// not if it is a periodical update of SIB1 (no change of BWP in that case)
if
(
mac
->
state
<
UE_CONNECTED
)
{
configure_current_BWP
(
mac
,
scc
,
NULL
);
mac
->
current_UL_BWP
.
pusch_Config
=
NULL
;
}
// Setup the SSB to Rach Occasionsif (cell_group_config->spCellConfig) { mapping according to the config
build_ssb_to_ro_map
(
mac
);
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
2543b9e0
...
...
@@ -4312,12 +4312,13 @@ void nr_get_pusch_tx_power_ue_parameters(NR_UE_MAC_INST_t *mac,
NR_PUSCH_PowerControl_t
*
pusch_pc_cfg
=
NULL
;
NR_SRI_PUSCH_PowerControl_t
*
SRI_PUSCH_PowerControl
=
NULL
;
if
(
pusch_Config
->
pusch_PowerControl
)
pusch_pc_cfg
=
pusch_Config
->
pusch_PowerControl
;
else
LOG_W
(
MAC
,
"%s:NR_PUSCH_PowerControl Not present
\n
"
,
__FUNCTION__
);
if
(
pusch_Config
)
{
if
(
pusch_Config
->
pusch_PowerControl
)
pusch_pc_cfg
=
pusch_Config
->
pusch_PowerControl
;
else
LOG_W
(
MAC
,
"%s:NR_PUSCH_PowerControl Not present
\n
"
,
__FUNCTION__
);
}
int
P0_UE_PUSCH
=
0
,
P0_NOMINAL_PUSCH
=
0
;
P0_NOMINAL_PUSCH
=
nr_get_Po_NOMINAL_PUSCH_for_ULPC
(
mac
);
...
...
@@ -4400,18 +4401,18 @@ void nr_get_pusch_tx_power_ue_parameters(NR_UE_MAC_INST_t *mac,
P0_NOMINAL_PUSCH
,
P0_UE_PUSCH
,
alpha_val
,
alpha
,
pathloss
);
pusch_pdu
->
P0_PUSCH
=
P0_NOMINAL_PUSCH
+
P0_UE_PUSCH
;
//if IE tpc_accumulation is NULL, tpc accumulation is enabled. if IE present, tpc accumulation is disabled.
pusch_pdu
->
tpc_accumulation_enabled
=
((
pusch_pc_cfg
)
&&
(
pusch_pc_cfg
->
tpc_Accumulation
==
NULL
))
?
1
:
0
;
//if IE deltaMCS is NULL, deltaMCS is disabled. if IE present, tpc accumulation is enabled.
pusch_pdu
->
deltaMCS
=
(
pusch_pc_cfg
->
deltaMCS
)
?
1
:
0
;
//pusch_pdu->deltaMCS = (pusch_pc_cfg && pusch_pc_cfg->deltaMCS) ? 1 : 0;
pusch_pdu
->
deltaMCS
=
1
;
//MAC pdu includes ULSCH data then beta offset = 1
//Else if includes CSI and no ULSCH data then TBD...
pusch_pdu
->
beta_offset
=
1
;
///////////////////////////////////////////// f_pusch ///////////////////////////////////////////////
/// assume tpc-Accumulation is not provided!
if
(
pusch_pc_cfg
->
twoPUSCH_PC_AdjustmentStates
)
{
if
(
pusch_pc_cfg
&&
pusch_pc_cfg
->
twoPUSCH_PC_AdjustmentStates
)
{
LOG_W
(
PHY
,
"In %s: missing implementation for twopusch_pc_cfg_AdjustmentStates
\n
"
,
__FUNCTION__
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment