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
7b3191d1
Commit
7b3191d1
authored
Jun 04, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/NR_SS0_config_fix' into integration_2022_wk22
parents
1215444c
09ecb8a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
+6
-12
No files found.
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
View file @
7b3191d1
...
@@ -3938,25 +3938,17 @@ void fill_searchSpaceZero(NR_SearchSpace_t *ss0, NR_Type0_PDCCH_CSS_config_t *ty
...
@@ -3938,25 +3938,17 @@ void fill_searchSpaceZero(NR_SearchSpace_t *ss0, NR_Type0_PDCCH_CSS_config_t *ty
if
(
ss0
->
searchSpaceType
->
choice
.
common
->
dci_Format0_0_AndFormat1_0
==
NULL
)
if
(
ss0
->
searchSpaceType
->
choice
.
common
->
dci_Format0_0_AndFormat1_0
==
NULL
)
ss0
->
searchSpaceType
->
choice
.
common
->
dci_Format0_0_AndFormat1_0
=
calloc
(
1
,
sizeof
(
*
ss0
->
searchSpaceType
->
choice
.
common
->
dci_Format0_0_AndFormat1_0
));
ss0
->
searchSpaceType
->
choice
.
common
->
dci_Format0_0_AndFormat1_0
=
calloc
(
1
,
sizeof
(
*
ss0
->
searchSpaceType
->
choice
.
common
->
dci_Format0_0_AndFormat1_0
));
uint32_t
duration
,
periodicity
,
offset
;
uint16_t
symbols
,
max_agg
;
AssertFatal
(
type0_PDCCH_CSS_config
!=
NULL
,
"No type0 CSS configuration
\n
"
);
AssertFatal
(
type0_PDCCH_CSS_config
!=
NULL
,
"No type0 CSS configuration
\n
"
);
max_agg
=
(
type0_PDCCH_CSS_config
->
num_symbols
*
type0_PDCCH_CSS_config
->
num_rbs
)
/
6
;
const
uint32_t
periodicity
=
type0_PDCCH_CSS_config
->
search_space_frame_period
;
const
uint32_t
offset
=
type0_PDCCH_CSS_config
->
type0_pdcch_ss_mux_pattern
==
1
symbols
=
(
1
-
(
1
<<
type0_PDCCH_CSS_config
->
num_symbols
))
<<
type0_PDCCH_CSS_config
->
first_symbol_index
;
?
type0_PDCCH_CSS_config
->
n_0
:
type0_PDCCH_CSS_config
->
n_c
;
duration
=
type0_PDCCH_CSS_config
->
search_space_duration
;
periodicity
=
type0_PDCCH_CSS_config
->
search_space_frame_period
;
if
(
type0_PDCCH_CSS_config
->
type0_pdcch_ss_mux_pattern
==
1
)
offset
=
type0_PDCCH_CSS_config
->
n_0
;
else
offset
=
type0_PDCCH_CSS_config
->
n_c
;
ss0
->
searchSpaceId
=
0
;
ss0
->
searchSpaceId
=
0
;
*
ss0
->
controlResourceSetId
=
0
;
*
ss0
->
controlResourceSetId
=
0
;
ss0
->
monitoringSlotPeriodicityAndOffset
=
calloc
(
1
,
sizeof
(
*
ss0
->
monitoringSlotPeriodicityAndOffset
));
ss0
->
monitoringSlotPeriodicityAndOffset
=
calloc
(
1
,
sizeof
(
*
ss0
->
monitoringSlotPeriodicityAndOffset
));
set_monitoring_periodicity_offset
(
ss0
,
periodicity
,
offset
);
set_monitoring_periodicity_offset
(
ss0
,
periodicity
,
offset
);
const
uint32_t
duration
=
type0_PDCCH_CSS_config
->
search_space_duration
;
if
(
duration
==
1
)
if
(
duration
==
1
)
ss0
->
duration
=
NULL
;
ss0
->
duration
=
NULL
;
else
{
else
{
...
@@ -3964,6 +3956,7 @@ void fill_searchSpaceZero(NR_SearchSpace_t *ss0, NR_Type0_PDCCH_CSS_config_t *ty
...
@@ -3964,6 +3956,7 @@ void fill_searchSpaceZero(NR_SearchSpace_t *ss0, NR_Type0_PDCCH_CSS_config_t *ty
*
ss0
->
duration
=
duration
;
*
ss0
->
duration
=
duration
;
}
}
const
uint16_t
symbols
=
SL_to_bitmap
(
type0_PDCCH_CSS_config
->
first_symbol_index
,
type0_PDCCH_CSS_config
->
num_symbols
);
ss0
->
monitoringSymbolsWithinSlot
->
size
=
2
;
ss0
->
monitoringSymbolsWithinSlot
->
size
=
2
;
ss0
->
monitoringSymbolsWithinSlot
->
bits_unused
=
2
;
ss0
->
monitoringSymbolsWithinSlot
->
bits_unused
=
2
;
ss0
->
monitoringSymbolsWithinSlot
->
buf
[
1
]
=
0
;
ss0
->
monitoringSymbolsWithinSlot
->
buf
[
1
]
=
0
;
...
@@ -3973,6 +3966,7 @@ void fill_searchSpaceZero(NR_SearchSpace_t *ss0, NR_Type0_PDCCH_CSS_config_t *ty
...
@@ -3973,6 +3966,7 @@ void fill_searchSpaceZero(NR_SearchSpace_t *ss0, NR_Type0_PDCCH_CSS_config_t *ty
ss0
->
monitoringSymbolsWithinSlot
->
buf
[
0
]
|=
((
symbols
>>
i
)
&
0x01
)
<<
(
7
-
i
);
ss0
->
monitoringSymbolsWithinSlot
->
buf
[
0
]
|=
((
symbols
>>
i
)
&
0x01
)
<<
(
7
-
i
);
}
}
const
uint16_t
max_agg
=
(
type0_PDCCH_CSS_config
->
num_symbols
*
type0_PDCCH_CSS_config
->
num_rbs
)
/
6
;
// max values are set according to TS38.213 Section 10.1 Table 10.1-1
// max values are set according to TS38.213 Section 10.1 Table 10.1-1
ss0
->
nrofCandidates
->
aggregationLevel1
=
NR_SearchSpace__nrofCandidates__aggregationLevel1_n0
;
ss0
->
nrofCandidates
->
aggregationLevel1
=
NR_SearchSpace__nrofCandidates__aggregationLevel1_n0
;
ss0
->
nrofCandidates
->
aggregationLevel2
=
NR_SearchSpace__nrofCandidates__aggregationLevel2_n0
;
ss0
->
nrofCandidates
->
aggregationLevel2
=
NR_SearchSpace__nrofCandidates__aggregationLevel2_n0
;
...
...
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