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
09ecb8a3
Commit
09ecb8a3
authored
May 24, 2022
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix in fill_searchSpaceZero
parent
5bf454c7
Changes
1
Hide 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 @
09ecb8a3
...
...
@@ -3940,25 +3940,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
)
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
"
);
max_agg
=
(
type0_PDCCH_CSS_config
->
num_symbols
*
type0_PDCCH_CSS_config
->
num_rbs
)
/
6
;
symbols
=
(
1
-
(
1
<<
type0_PDCCH_CSS_config
->
num_symbols
))
<<
type0_PDCCH_CSS_config
->
first_symbol_index
;
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
;
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
?
type0_PDCCH_CSS_config
->
n_0
:
type0_PDCCH_CSS_config
->
n_c
;
ss0
->
searchSpaceId
=
0
;
*
ss0
->
controlResourceSetId
=
0
;
ss0
->
monitoringSlotPeriodicityAndOffset
=
calloc
(
1
,
sizeof
(
*
ss0
->
monitoringSlotPeriodicityAndOffset
));
set_monitoring_periodicity_offset
(
ss0
,
periodicity
,
offset
);
const
uint32_t
duration
=
type0_PDCCH_CSS_config
->
search_space_duration
;
if
(
duration
==
1
)
ss0
->
duration
=
NULL
;
else
{
...
...
@@ -3966,6 +3958,7 @@ void fill_searchSpaceZero(NR_SearchSpace_t *ss0, NR_Type0_PDCCH_CSS_config_t *ty
*
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
->
bits_unused
=
2
;
ss0
->
monitoringSymbolsWithinSlot
->
buf
[
1
]
=
0
;
...
...
@@ -3975,6 +3968,7 @@ void fill_searchSpaceZero(NR_SearchSpace_t *ss0, NR_Type0_PDCCH_CSS_config_t *ty
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
ss0
->
nrofCandidates
->
aggregationLevel1
=
NR_SearchSpace__nrofCandidates__aggregationLevel1_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