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
zzha zzha
OpenXG-RAN
Commits
54f49fd2
Commit
54f49fd2
authored
May 12, 2022
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicated code for bwp common validation
parent
2f3ce42d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
28 deletions
+28
-28
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+1
-10
openair2/LAYER2/NR_MAC_UE/mac_proto.h
openair2/LAYER2/NR_MAC_UE/mac_proto.h
+2
-0
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+25
-18
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
54f49fd2
...
...
@@ -508,16 +508,7 @@ void configure_ss_coreset(NR_UE_MAC_INST_t *mac,
NR_ServingCellConfig_t
*
scd
,
NR_BWP_Id_t
dl_bwp_id
)
{
NR_BWP_DownlinkCommon_t
*
bwp_Common
=
NULL
;
if
(
dl_bwp_id
>
0
&&
scd
->
downlinkBWP_ToAddModList
)
{
bwp_Common
=
scd
->
downlinkBWP_ToAddModList
->
list
.
array
[
dl_bwp_id
-
1
]
->
bwp_Common
;
}
else
if
(
mac
->
scc
)
{
bwp_Common
=
mac
->
scc
->
downlinkConfigCommon
->
initialDownlinkBWP
;
}
else
if
(
mac
->
scc_SIB
)
{
bwp_Common
=
&
mac
->
scc_SIB
->
downlinkConfigCommon
.
initialDownlinkBWP
;
}
NR_BWP_DownlinkCommon_t
*
bwp_Common
=
get_bwp_downlink_common
(
mac
,
dl_bwp_id
);
AssertFatal
(
bwp_Common
!=
NULL
,
"bwp_Common is null
\n
"
);
NR_SetupRelease_PDCCH_ConfigCommon_t
*
pdcch_ConfigCommon
=
bwp_Common
->
pdcch_ConfigCommon
;
...
...
openair2/LAYER2/NR_MAC_UE/mac_proto.h
View file @
54f49fd2
...
...
@@ -260,6 +260,8 @@ void get_bwp_info(NR_UE_MAC_INST_t *mac,
NR_BWP_UplinkDedicated_t
**
ubwpd
,
NR_BWP_UplinkCommon_t
**
ubwpc
);
NR_BWP_DownlinkCommon_t
*
get_bwp_downlink_common
(
NR_UE_MAC_INST_t
*
mac
,
NR_BWP_Id_t
dl_bwp_id
);
uint8_t
nr_extract_dci_info
(
NR_UE_MAC_INST_t
*
mac
,
uint8_t
dci_format
,
uint8_t
dci_length
,
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
54f49fd2
...
...
@@ -191,24 +191,19 @@ void get_bwp_info(NR_UE_MAC_INST_t *mac,
NR_BWP_UplinkDedicated_t
**
ubwpd
,
NR_BWP_UplinkCommon_t
**
ubwpc
)
{
if
(
dl_bwp_id
>
0
)
{
AssertFatal
(
mac
->
DLbwp
[
dl_bwp_id
-
1
]
!=
NULL
,
"mac->DLbwp[%d] is null, shouldn't be
\n
"
,
(
int
)
dl_bwp_id
-
1
);
*
bwpd
=
mac
->
DLbwp
[
dl_bwp_id
-
1
]
->
bwp_Dedicated
;
if
(
mac
->
DLbwp
[
dl_bwp_id
-
1
]
->
bwp_Common
)
*
bwpc
=
mac
->
DLbwp
[
dl_bwp_id
-
1
]
->
bwp_Common
;
else
if
(
mac
->
scc
)
*
bwpc
=
mac
->
scc
->
downlinkConfigCommon
->
initialDownlinkBWP
;
else
if
(
mac
->
scc_SIB
)
*
bwpc
=
&
mac
->
scc_SIB
->
downlinkConfigCommon
.
initialDownlinkBWP
;
AssertFatal
(
*
bwpc
!=
NULL
,
"bwpc shouldn't be null
\n
"
);
}
else
{
if
(
mac
->
cg
&&
mac
->
cg
->
spCellConfig
&&
mac
->
cg
->
spCellConfig
->
spCellConfigDedicated
&&
mac
->
cg
->
spCellConfig
->
spCellConfigDedicated
->
initialDownlinkBWP
)
*
bwpd
=
mac
->
cg
->
spCellConfig
->
spCellConfigDedicated
->
initialDownlinkBWP
;
if
(
mac
->
scc
)
*
bwpc
=
mac
->
scc
->
downlinkConfigCommon
->
initialDownlinkBWP
;
else
if
(
mac
->
scc_SIB
)
*
bwpc
=
&
mac
->
scc_SIB
->
downlinkConfigCommon
.
initialDownlinkBWP
;
AssertFatal
(
*
bwpc
!=
NULL
,
"bwpc shouldn't be null
\n
"
);
}
if
(
dl_bwp_id
>
0
)
{
AssertFatal
(
mac
->
DLbwp
[
dl_bwp_id
-
1
]
!=
NULL
,
"mac->DLbwp[%d] is null, shouldn't be
\n
"
,
(
int
)
dl_bwp_id
-
1
);
*
bwpd
=
mac
->
DLbwp
[
dl_bwp_id
-
1
]
->
bwp_Dedicated
;
}
else
{
if
(
mac
->
cg
&&
mac
->
cg
->
spCellConfig
&&
mac
->
cg
->
spCellConfig
->
spCellConfigDedicated
&&
mac
->
cg
->
spCellConfig
->
spCellConfigDedicated
->
initialDownlinkBWP
)
*
bwpd
=
mac
->
cg
->
spCellConfig
->
spCellConfigDedicated
->
initialDownlinkBWP
;
}
*
bwpc
=
get_bwp_downlink_common
(
mac
,
dl_bwp_id
);
AssertFatal
(
*
bwpc
!=
NULL
,
"bwpc shouldn't be null
\n
"
);
if
(
ul_bwp_id
>
0
)
{
AssertFatal
(
mac
->
ULbwp
[
ul_bwp_id
-
1
]
!=
NULL
,
"mac->ULbwp[%d] is null, shouldn't be
\n
"
,
...
...
@@ -233,6 +228,18 @@ void get_bwp_info(NR_UE_MAC_INST_t *mac,
}
}
NR_BWP_DownlinkCommon_t
*
get_bwp_downlink_common
(
NR_UE_MAC_INST_t
*
mac
,
NR_BWP_Id_t
dl_bwp_id
)
{
NR_BWP_DownlinkCommon_t
*
bwp_Common
=
NULL
;
if
(
dl_bwp_id
>
0
&&
mac
->
cg
->
spCellConfig
->
spCellConfigDedicated
->
downlinkBWP_ToAddModList
)
{
bwp_Common
=
mac
->
cg
->
spCellConfig
->
spCellConfigDedicated
->
downlinkBWP_ToAddModList
->
list
.
array
[
dl_bwp_id
-
1
]
->
bwp_Common
;
}
else
if
(
mac
->
scc
)
{
bwp_Common
=
mac
->
scc
->
downlinkConfigCommon
->
initialDownlinkBWP
;
}
else
if
(
mac
->
scc_SIB
)
{
bwp_Common
=
&
mac
->
scc_SIB
->
downlinkConfigCommon
.
initialDownlinkBWP
;
}
return
bwp_Common
;
}
NR_PDSCH_TimeDomainResourceAllocationList_t
*
choose_dl_tda_list
(
NR_PDSCH_Config_t
*
pdsch_Config
,
NR_PDSCH_ConfigCommon_t
*
pdsch_ConfigCommon
)
{
NR_PDSCH_TimeDomainResourceAllocationList_t
*
pdsch_TimeDomainAllocationList
=
NULL
;
...
...
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