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
spbro
OpenXG-RAN
Commits
373b7d9e
Commit
373b7d9e
authored
Jul 10, 2024
by
Bartosz Podrygajlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset NR UE PUSCH power control state if alpha or p0 is modified by gNB
parent
04c8f736
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+13
-5
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
373b7d9e
...
...
@@ -872,14 +872,21 @@ void nr_rrc_mac_config_req_mib(module_id_t module_id,
nr_ue_decode_mib
(
mac
,
cc_idP
);
}
static
void
setup_puschpowercontrol
(
NR_PUSCH_PowerControl_t
*
source
,
NR_PUSCH_PowerControl_t
*
target
)
static
void
setup_puschpowercontrol
(
NR_
UE_MAC_INST_t
*
mac
,
NR_
PUSCH_PowerControl_t
*
source
,
NR_PUSCH_PowerControl_t
*
target
)
{
UPDATE_IE
(
target
->
tpc_Accumulation
,
source
->
tpc_Accumulation
,
long
);
UPDATE_IE
(
target
->
msg3_Alpha
,
source
->
msg3_Alpha
,
NR_Alpha_t
);
if
(
source
->
p0_NominalWithoutGrant
)
UPDATE_IE
(
target
->
p0_NominalWithoutGrant
,
source
->
p0_NominalWithoutGrant
,
long
);
if
(
source
->
p0_AlphaSets
)
if
(
source
->
p0_AlphaSets
)
{
UPDATE_IE
(
target
->
p0_AlphaSets
,
source
->
p0_AlphaSets
,
struct
NR_PUSCH_PowerControl__p0_AlphaSets
);
if
(
target
->
p0_AlphaSets
->
list
.
array
[
0
]
->
alpha
)
{
mac
->
f_b_f_c
=
0
;
}
if
(
target
->
p0_AlphaSets
->
list
.
array
[
0
]
->
p0
)
{
mac
->
f_b_f_c
=
0
;
}
}
UPDATE_IE
(
target
->
twoPUSCH_PC_AdjustmentStates
,
source
->
twoPUSCH_PC_AdjustmentStates
,
long
);
UPDATE_IE
(
target
->
deltaMCS
,
source
->
deltaMCS
,
long
);
if
(
source
->
pathlossReferenceRSToReleaseList
)
{
...
...
@@ -901,6 +908,7 @@ static void setup_puschpowercontrol(NR_PUSCH_PowerControl_t *source, NR_PUSCH_Po
sri_PUSCH_PowerControlId
);
}
if
(
source
->
sri_PUSCH_MappingToAddModList
)
{
LOG_E
(
NR_MAC
,
"NR_SRI_PUSCH_PowerControl not implemented, power control will not work as intended
\n
"
);
if
(
!
target
->
sri_PUSCH_MappingToAddModList
)
target
->
sri_PUSCH_MappingToAddModList
=
calloc
(
1
,
sizeof
(
*
target
->
sri_PUSCH_MappingToAddModList
));
ADDMOD_IE_FROMLIST
(
source
->
sri_PUSCH_MappingToAddModList
,
...
...
@@ -910,7 +918,7 @@ static void setup_puschpowercontrol(NR_PUSCH_PowerControl_t *source, NR_PUSCH_Po
}
}
static
void
setup_puschconfig
(
NR_PUSCH_Config_t
*
source
,
NR_PUSCH_Config_t
*
target
)
static
void
setup_puschconfig
(
NR_
UE_MAC_INST_t
*
mac
,
NR_
PUSCH_Config_t
*
source
,
NR_PUSCH_Config_t
*
target
)
{
UPDATE_IE
(
target
->
dataScramblingIdentityPUSCH
,
source
->
dataScramblingIdentityPUSCH
,
long
);
UPDATE_IE
(
target
->
txConfig
,
source
->
txConfig
,
long
);
...
...
@@ -927,7 +935,7 @@ static void setup_puschconfig(NR_PUSCH_Config_t *source, NR_PUSCH_Config_t *targ
if
(
source
->
pusch_PowerControl
)
{
if
(
!
target
->
pusch_PowerControl
)
target
->
pusch_PowerControl
=
calloc
(
1
,
sizeof
(
*
target
->
pusch_PowerControl
));
setup_puschpowercontrol
(
source
->
pusch_PowerControl
,
target
->
pusch_PowerControl
);
setup_puschpowercontrol
(
mac
,
source
->
pusch_PowerControl
,
target
->
pusch_PowerControl
);
}
UPDATE_IE
(
target
->
frequencyHopping
,
source
->
frequencyHopping
,
long
);
if
(
source
->
frequencyHoppingOffsetLists
)
...
...
@@ -1415,7 +1423,7 @@ static void configure_dedicated_BWP_ul(NR_UE_MAC_INST_t *mac, int bwp_id, NR_BWP
if
(
ul_dedicated
->
pusch_Config
->
present
==
NR_SetupRelease_PUSCH_Config_PR_setup
)
{
if
(
!
bwp
->
pusch_Config
)
bwp
->
pusch_Config
=
calloc
(
1
,
sizeof
(
*
bwp
->
pusch_Config
));
setup_puschconfig
(
ul_dedicated
->
pusch_Config
->
choice
.
setup
,
bwp
->
pusch_Config
);
setup_puschconfig
(
mac
,
ul_dedicated
->
pusch_Config
->
choice
.
setup
,
bwp
->
pusch_Config
);
}
}
if
(
ul_dedicated
->
srs_Config
)
{
...
...
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