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
8943dfa1
Commit
8943dfa1
authored
Dec 22, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/NR_fix_sib1_reset_after_failure' into integration_2022_wk51
parents
027a8c6f
01369343
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
openair2/LAYER2/NR_MAC_UE/mac_defs.h
openair2/LAYER2/NR_MAC_UE/mac_defs.h
+1
-0
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
+1
-0
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+12
-8
No files found.
openair2/LAYER2/NR_MAC_UE/mac_defs.h
View file @
8943dfa1
...
@@ -384,6 +384,7 @@ typedef struct {
...
@@ -384,6 +384,7 @@ typedef struct {
long
physCellId
;
long
physCellId
;
//// MAC config
//// MAC config
int
first_sync_frame
;
int
first_sync_frame
;
bool
sib1_decoded
;
NR_DRX_Config_t
*
drx_Config
;
NR_DRX_Config_t
*
drx_Config
;
NR_SchedulingRequestConfig_t
*
schedulingRequestConfig
;
NR_SchedulingRequestConfig_t
*
schedulingRequestConfig
;
NR_BSR_Config_t
*
bsr_Config
;
NR_BSR_Config_t
*
bsr_Config
;
...
...
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
View file @
8943dfa1
...
@@ -51,6 +51,7 @@ NR_UE_MAC_INST_t * nr_l2_init_ue(NR_UE_RRC_INST_t* rrc_inst) {
...
@@ -51,6 +51,7 @@ NR_UE_MAC_INST_t * nr_l2_init_ue(NR_UE_RRC_INST_t* rrc_inst) {
//init mac here
//init mac here
nr_ue_mac_inst
=
(
NR_UE_MAC_INST_t
*
)
calloc
(
sizeof
(
NR_UE_MAC_INST_t
),
NB_NR_UE_MAC_INST
);
nr_ue_mac_inst
=
(
NR_UE_MAC_INST_t
*
)
calloc
(
sizeof
(
NR_UE_MAC_INST_t
),
NB_NR_UE_MAC_INST
);
nr_ue_mac_inst
->
first_sync_frame
=
-
1
;
nr_ue_mac_inst
->
first_sync_frame
=
-
1
;
nr_ue_mac_inst
->
sib1_decoded
=
false
;
for
(
int
j
=
0
;
j
<
NB_NR_UE_MAC_INST
;
j
++
)
{
for
(
int
j
=
0
;
j
<
NB_NR_UE_MAC_INST
;
j
++
)
{
nr_ue_init_mac
(
j
);
nr_ue_init_mac
(
j
);
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
8943dfa1
...
@@ -370,7 +370,7 @@ int8_t nr_ue_decode_mib(module_id_t module_id,
...
@@ -370,7 +370,7 @@ int8_t nr_ue_decode_mib(module_id_t module_id,
else
else
ssb_sc_offset_norm
=
ssb_subcarrier_offset
;
ssb_sc_offset_norm
=
ssb_subcarrier_offset
;
if
(
mac
->
first_sync_frame
==
-
1
)
if
(
!
mac
->
sib1_decoded
)
{
nr_ue_sib1_scheduler
(
module_id
,
nr_ue_sib1_scheduler
(
module_id
,
cc_id
,
cc_id
,
ssb_start_symbol
,
ssb_start_symbol
,
...
@@ -380,18 +380,20 @@ int8_t nr_ue_decode_mib(module_id_t module_id,
...
@@ -380,18 +380,20 @@ int8_t nr_ue_decode_mib(module_id_t module_id,
ssb_start_subcarrier
,
ssb_start_subcarrier
,
mac
->
frequency_range
,
mac
->
frequency_range
,
phy_data
);
phy_data
);
mac
->
first_sync_frame
=
frame
;
}
}
}
else
{
else
{
NR_ServingCellConfigCommon_t
*
scc
=
mac
->
scc
;
NR_ServingCellConfigCommon_t
*
scc
=
mac
->
scc
;
scs_ssb
=
*
scc
->
ssbSubcarrierSpacing
;
scs_ssb
=
*
scc
->
ssbSubcarrierSpacing
;
band
=
*
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
frequencyBandList
.
list
.
array
[
0
];
band
=
*
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
frequencyBandList
.
list
.
array
[
0
];
ssb_start_symbol
=
get_ssb_start_symbol
(
band
,
scs_ssb
,
ssb_index
);
ssb_start_symbol
=
get_ssb_start_symbol
(
band
,
scs_ssb
,
ssb_index
);
if
(
mac
->
first_sync_frame
==
-
1
)
mac
->
first_sync_frame
=
frame
;
}
}
mac
->
dl_config_request
.
sfn
=
frame
;
mac
->
dl_config_request
.
sfn
=
frame
;
mac
->
dl_config_request
.
slot
=
ssb_start_symbol
/
14
;
mac
->
dl_config_request
.
slot
=
ssb_start_symbol
/
14
;
if
(
mac
->
first_sync_frame
==
-
1
)
mac
->
first_sync_frame
=
frame
;
return
0
;
return
0
;
}
}
...
@@ -404,6 +406,8 @@ int8_t nr_ue_decode_BCCH_DL_SCH(module_id_t module_id,
...
@@ -404,6 +406,8 @@ int8_t nr_ue_decode_BCCH_DL_SCH(module_id_t module_id,
uint32_t
pdu_len
)
{
uint32_t
pdu_len
)
{
if
(
ack_nack
)
{
if
(
ack_nack
)
{
LOG_D
(
NR_MAC
,
"Decoding NR-BCCH-DL-SCH-Message (SIB1 or SI)
\n
"
);
LOG_D
(
NR_MAC
,
"Decoding NR-BCCH-DL-SCH-Message (SIB1 or SI)
\n
"
);
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
module_id
);
mac
->
sib1_decoded
=
true
;
nr_mac_rrc_data_ind_ue
(
module_id
,
cc_id
,
gNB_index
,
0
,
0
,
0
,
NR_BCCH_DL_SCH
,
(
uint8_t
*
)
pduP
,
pdu_len
);
nr_mac_rrc_data_ind_ue
(
module_id
,
cc_id
,
gNB_index
,
0
,
0
,
0
,
NR_BCCH_DL_SCH
,
(
uint8_t
*
)
pduP
,
pdu_len
);
}
}
else
else
...
@@ -421,11 +425,11 @@ uint32_t get_ssb_frame(uint32_t test){
...
@@ -421,11 +425,11 @@ uint32_t get_ssb_frame(uint32_t test){
* These tables and functions are going to be called by function nr_ue_process_dci
* These tables and functions are going to be called by function nr_ue_process_dci
*/
*/
int8_t
nr_ue_process_dci_freq_dom_resource_assignment
(
nfapi_nr_ue_pusch_pdu_t
*
pusch_config_pdu
,
int8_t
nr_ue_process_dci_freq_dom_resource_assignment
(
nfapi_nr_ue_pusch_pdu_t
*
pusch_config_pdu
,
fapi_nr_dl_config_dlsch_pdu_rel15_t
*
dlsch_config_pdu
,
fapi_nr_dl_config_dlsch_pdu_rel15_t
*
dlsch_config_pdu
,
uint16_t
n_RB_ULBWP
,
uint16_t
n_RB_ULBWP
,
uint16_t
n_RB_DLBWP
,
uint16_t
n_RB_DLBWP
,
uint16_t
riv
uint16_t
riv
)
)
{
{
/*
/*
* TS 38.214 subclause 5.1.2.2 Resource allocation in frequency domain (downlink)
* TS 38.214 subclause 5.1.2.2 Resource allocation in frequency domain (downlink)
...
...
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