Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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 UE
Commits
e5ae419f
Commit
e5ae419f
authored
Mar 29, 2021
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved slot computation in decode mib function
parent
2d94454b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+14
-7
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
e5ae419f
...
...
@@ -144,11 +144,14 @@ int8_t nr_ue_decode_mib(module_id_t module_id,
//storing ssb index in the mac structure
mac
->
mib_ssb
=
ssb_index
;
if
(
get_softmodem_params
()
->
sa
==
1
)
{
uint8_t
scs_ssb
;
uint32_t
band
;
uint16_t
ssb_start_symbol
;
uint8_t
scs_ssb
=
get_softmodem_params
()
->
numerology
;
uint32_t
band
=
mac
->
nr_band
;
uint16_t
ssb_start_symbol
=
get_ssb_start_symbol
(
band
,
scs_ssb
,
ssb_index
);
if
(
get_softmodem_params
()
->
sa
==
1
)
{
scs_ssb
=
get_softmodem_params
()
->
numerology
;
band
=
mac
->
nr_band
;
ssb_start_symbol
=
get_ssb_start_symbol
(
band
,
scs_ssb
,
ssb_index
);
uint16_t
ssb_offset_point_a
=
(
ssb_start_subcarrier
-
ssb_subcarrier_offset
)
/
12
;
get_type0_PDCCH_CSS_config_parameters
(
&
mac
->
type0_PDCCH_CSS_config
,
...
...
@@ -167,11 +170,15 @@ int8_t nr_ue_decode_mib(module_id_t module_id,
mac
->
type0_pdcch_ss_sfn_c
=
mac
->
type0_PDCCH_CSS_config
.
sfn_c
;
mac
->
type0_pdcch_ss_n_c
=
mac
->
type0_PDCCH_CSS_config
.
n_c
;
}
else
{
NR_ServingCellConfigCommon_t
*
scc
=
mac
->
scc
;
scs_ssb
=
*
scc
->
ssbSubcarrierSpacing
;
band
=
*
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
frequencyBandList
.
list
.
array
[
0
];
ssb_start_symbol
=
get_ssb_start_symbol
(
band
,
scs_ssb
,
ssb_index
);
}
//TODO is this needed?
mac
->
dl_config_request
.
sfn
=
frame
;
mac
->
dl_config_request
.
slot
=
(
ssb_index
>>
1
)
+
((
ssb_index
>>
4
)
<<
1
);
// not valid for 240kHz SCS
mac
->
dl_config_request
.
slot
=
ssb_start_symbol
/
14
;
return
0
;
}
...
...
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