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
Michael Black
OpenXG-RAN
Commits
b9293754
Commit
b9293754
authored
Mar 22, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change rrc_coreset_config() to return new coreset config
parent
2d1aa842
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+1
-2
openair2/RRC/NR/nr_rrc_config.c
openair2/RRC/NR/nr_rrc_config.c
+6
-7
openair2/RRC/NR/nr_rrc_config.h
openair2/RRC/NR/nr_rrc_config.h
+1
-4
No files found.
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
b9293754
...
...
@@ -749,10 +749,9 @@ void fill_initial_SpCellConfig(int uid,
bwp_Dedicated
->
pdcch_Config
->
choice
.
setup
->
controlResourceSetToAddModList
=
calloc
(
1
,
sizeof
(
*
bwp_Dedicated
->
pdcch_Config
->
choice
.
setup
->
controlResourceSetToAddModList
));
NR_ControlResourceSet_t
*
coreset
=
calloc
(
1
,
sizeof
(
*
coreset
));
uint64_t
bitmap
=
get_ssb_bitmap
(
scc
);
rrc_coreset_config
(
coreset
,
0
,
curr_bwp
,
bitmap
);
NR_ControlResourceSet_t
*
coreset
=
get_coreset_config
(
0
,
curr_bwp
,
bitmap
);
asn1cSeqAdd
(
&
bwp_Dedicated
->
pdcch_Config
->
choice
.
setup
->
controlResourceSetToAddModList
->
list
,
coreset
);
...
...
openair2/RRC/NR/nr_rrc_config.c
View file @
b9293754
...
...
@@ -111,11 +111,10 @@ NR_SearchSpace_t *rrc_searchspace_config(bool is_common,
return
ss
;
}
void
rrc_coreset_config
(
NR_ControlResourceSet_t
*
coreset
,
int
bwp_id
,
int
curr_bwp
,
uint64_t
ssb_bitmap
)
{
NR_ControlResourceSet_t
*
get_coreset_config
(
int
bwp_id
,
int
curr_bwp
,
uint64_t
ssb_bitmap
)
{
NR_ControlResourceSet_t
*
coreset
=
calloc
(
1
,
sizeof
(
*
coreset
));
AssertFatal
(
coreset
!=
NULL
,
"out of memory
\n
"
);
// frequency domain resources depending on BWP size
coreset
->
frequencyDomainResources
.
buf
=
calloc
(
1
,
6
);
coreset
->
frequencyDomainResources
.
buf
[
0
]
=
(
curr_bwp
<
48
)
?
0xf0
:
0xff
;
...
...
@@ -145,6 +144,7 @@ void rrc_coreset_config(NR_ControlResourceSet_t *coreset,
coreset
->
tci_StatesPDCCH_ToReleaseList
=
NULL
;
coreset
->
tci_PresentInDCI
=
NULL
;
coreset
->
pdcch_DMRS_ScramblingID
=
NULL
;
return
coreset
;
}
uint64_t
get_ssb_bitmap
(
const
NR_ServingCellConfigCommon_t
*
scc
)
{
...
...
@@ -1178,9 +1178,8 @@ void config_downlinkBWP(NR_BWP_Downlink_t *bwp,
int
curr_bwp
=
NRRIV2BW
(
bwp
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
);
NR_ControlResourceSet_t
*
coreset
=
calloc
(
1
,
sizeof
(
*
coreset
));
uint64_t
ssb_bitmap
=
get_ssb_bitmap
(
scc
);
rrc_coreset_config
(
coreset
,
bwp
->
bwp_Id
,
curr_bwp
,
ssb_bitmap
);
NR_ControlResourceSet_t
*
coreset
=
get_coreset_config
(
bwp
->
bwp_Id
,
curr_bwp
,
ssb_bitmap
);
bwp
->
bwp_Common
->
pdcch_ConfigCommon
->
choice
.
setup
->
commonControlResourceSet
=
coreset
;
bwp
->
bwp_Common
->
pdcch_ConfigCommon
->
choice
.
setup
->
searchSpaceZero
=
NULL
;
...
...
openair2/RRC/NR/nr_rrc_config.h
View file @
b9293754
...
...
@@ -36,10 +36,7 @@
void
set_phr_config
(
NR_MAC_CellGroupConfig_t
*
mac_CellGroupConfig
);
uint64_t
get_ssb_bitmap
(
const
NR_ServingCellConfigCommon_t
*
scc
);
void
rrc_coreset_config
(
NR_ControlResourceSet_t
*
coreset
,
int
bwp_id
,
int
curr_bwp
,
uint64_t
ssb_bitmap
);
NR_ControlResourceSet_t
*
get_coreset_config
(
int
bwp_id
,
int
curr_bwp
,
uint64_t
ssb_bitmap
);
NR_SearchSpace_t
*
rrc_searchspace_config
(
bool
is_common
,
int
searchspaceid
,
int
coresetid
);
...
...
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