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
zzha zzha
OpenXG-RAN
Commits
0fac0ee7
Commit
0fac0ee7
authored
Apr 14, 2021
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filling config request, adjustment of prach functions and remove hardcoding from sib1
parent
7e5ef009
Changes
13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
310 additions
and
96 deletions
+310
-96
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+1
-1
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+1
-1
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
+2
-2
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.h
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.h
+1
-1
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+184
-15
openair2/LAYER2/NR_MAC_UE/mac_defs.h
openair2/LAYER2/NR_MAC_UE/mac_defs.h
+2
-0
openair2/LAYER2/NR_MAC_UE/mac_proto.h
openair2/LAYER2/NR_MAC_UE/mac_proto.h
+2
-2
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
+1
-1
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+1
-0
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+97
-67
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+8
-1
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+9
-5
openair2/RRC/NR_UE/rrc_defs.h
openair2/RRC/NR_UE/rrc_defs.h
+1
-0
No files found.
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
0fac0ee7
...
...
@@ -866,7 +866,7 @@ int main(int argc, char **argv)
rrc
.
carrier
.
MIB
=
(
uint8_t
*
)
malloc
(
4
);
rrc
.
carrier
.
sizeof_MIB
=
do_MIB_NR
(
&
rrc
,
0
);
nr_rrc_mac_config_req_ue
(
0
,
0
,
0
,
rrc
.
carrier
.
mib
.
message
.
choice
.
mib
,
secondaryCellGroup
);
nr_rrc_mac_config_req_ue
(
0
,
0
,
0
,
rrc
.
carrier
.
mib
.
message
.
choice
.
mib
,
NULL
,
secondaryCellGroup
);
nr_dcireq_t
dcireq
;
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
0fac0ee7
...
...
@@ -726,7 +726,7 @@ int main(int argc, char **argv)
rrc
.
carrier
.
MIB
=
(
uint8_t
*
)
malloc
(
4
);
rrc
.
carrier
.
sizeof_MIB
=
do_MIB_NR
(
&
rrc
,
0
);
nr_rrc_mac_config_req_ue
(
0
,
0
,
0
,
rrc
.
carrier
.
mib
.
message
.
choice
.
mib
,
secondaryCellGroup
);
nr_rrc_mac_config_req_ue
(
0
,
0
,
0
,
rrc
.
carrier
.
mib
.
message
.
choice
.
mib
,
NULL
,
secondaryCellGroup
);
nr_ue_phy_config_request
(
&
UE_mac
->
phy_config
);
...
...
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
View file @
0fac0ee7
...
...
@@ -1179,12 +1179,12 @@ int get_format0(uint8_t index,
return
format
;
}
int64_t
*
get_prach_config_info
(
uint32_t
pointa
,
int64_t
*
get_prach_config_info
(
frequency_range_t
freq_range
,
uint8_t
index
,
uint8_t
unpaired
)
{
int64_t
*
prach_config_info_p
;
if
(
pointa
>
2016666
)
{
//FR2
if
(
freq_range
==
FR2
)
{
//FR2
prach_config_info_p
=
table_6_3_3_2_4_prachConfig_Index
[
index
];
}
else
{
// FR1
...
...
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.h
View file @
0fac0ee7
...
...
@@ -113,7 +113,7 @@ int ul_ant_bits(NR_DMRS_UplinkConfig_t *NR_DMRS_UplinkConfig,long transformPreco
int
get_format0
(
uint8_t
index
,
uint8_t
unpaired
,
frequency_range_t
);
int64_t
*
get_prach_config_info
(
uint32_t
pointa
,
int64_t
*
get_prach_config_info
(
frequency_range_t
freq_range
,
uint8_t
index
,
uint8_t
unpaired
);
...
...
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
0fac0ee7
This diff is collapsed.
Click to expand it.
openair2/LAYER2/NR_MAC_UE/mac_defs.h
View file @
0fac0ee7
...
...
@@ -314,6 +314,7 @@ typedef struct {
NR_CSI_ReportConfig_t
*
csirc
;
long
physCellId
;
//// MAC config
int
common_configuration_complete
;
NR_DRX_Config_t
*
drx_Config
;
NR_SchedulingRequestConfig_t
*
schedulingRequestConfig
;
NR_BSR_Config_t
*
bsr_Config
;
...
...
@@ -381,6 +382,7 @@ typedef struct {
NR_ControlResourceSet_t
*
coreset0
;
frequency_range_t
frequency_range
;
uint16_t
nr_band
;
uint8_t
ssb_subcarrier_offset
;
}
NR_UE_MAC_INST_t
;
...
...
openair2/LAYER2/NR_MAC_UE/mac_proto.h
View file @
0fac0ee7
...
...
@@ -83,7 +83,7 @@ int nr_rrc_mac_config_req_ue(
int
cc_idP
,
uint8_t
gNB_index
,
NR_MIB_t
*
mibP
,
//NR_ServingCellConfigCommon_t
*sccP,
NR_ServingCellConfigCommonSIB_t
*
sccP
,
NR_CellGroupConfig_t
*
cell_group_config
);
/**\brief initialization NR UE MAC instance(s), total number of MAC instance based on NB_NR_UE_MAC_INST*/
...
...
@@ -313,7 +313,7 @@ void get_num_re_dmrs(nfapi_nr_ue_pusch_pdu_t *pusch_pdu,
uint8_t
*
nb_dmrs_re_per_rb
,
uint16_t
*
number_dmrs_symbols
);
void
build_ssb_to_ro_map
(
NR_
ServingCellConfigCommon_t
*
scc
,
uint8_t
unpaired
);
void
build_ssb_to_ro_map
(
NR_
UE_MAC_INST_t
*
mac
);
void
config_bwp_ue
(
NR_UE_MAC_INST_t
*
mac
,
uint16_t
*
bwp_ind
,
uint8_t
*
dci_format
);
...
...
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
View file @
0fac0ee7
...
...
@@ -51,7 +51,7 @@ NR_UE_MAC_INST_t * nr_l2_init_ue(NR_UE_RRC_INST_t* rrc_inst) {
//init mac here
nr_ue_mac_inst
=
(
NR_UE_MAC_INST_t
*
)
calloc
(
sizeof
(
NR_UE_MAC_INST_t
),
NB_NR_UE_MAC_INST
);
if
(
rrc_inst
)
{
nr_rrc_mac_config_req_ue
(
0
,
0
,
0
,
NULL
,
rrc_inst
->
cell_group_config
);
nr_rrc_mac_config_req_ue
(
0
,
0
,
0
,
NULL
,
NULL
,
rrc_inst
->
cell_group_config
);
if
(
IS_SOFTMODEM_NOS1
){
AssertFatal
(
rlc_module_init
(
0
)
==
0
,
"%s: Could not initialize RLC layer
\n
"
,
__FUNCTION__
);
pdcp_layer_init
();
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
0fac0ee7
...
...
@@ -143,6 +143,7 @@ int8_t nr_ue_decode_mib(module_id_t module_id,
//storing ssb index in the mac structure
mac
->
mib_ssb
=
ssb_index
;
mac
->
ssb_subcarrier_offset
=
ssb_subcarrier_offset
;
uint8_t
scs_ssb
;
uint32_t
band
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
0fac0ee7
...
...
@@ -982,7 +982,7 @@ int nr_ue_pusch_scheduler(NR_UE_MAC_INST_t *mac,
}
// Build the list of all the valid RACH occasions in the maximum association pattern period according to the PRACH config
static
void
build_ro_list
(
NR_
ServingCellConfigCommon_t
*
scc
,
uint8_t
unpaired
)
{
static
void
build_ro_list
(
NR_
UE_MAC_INST_t
*
mac
)
{
int
x
,
y
;
// PRACH Configuration Index table variables used to compute the valid frame numbers
int
y2
;
// PRACH Configuration Index table additional variable used to compute the valid frame numbers
...
...
@@ -1000,7 +1000,6 @@ static void build_ro_list(NR_ServingCellConfigCommon_t *scc, uint8_t unpaired) {
int
nb_fdm
;
uint8_t
config_index
,
mu
;
uint32_t
pointa
;
int
msg1_FDM
;
uint8_t
prach_conf_period_idx
;
...
...
@@ -1008,18 +1007,21 @@ static void build_ro_list(NR_ServingCellConfigCommon_t *scc, uint8_t unpaired) {
uint8_t
prach_conf_period_frame_idx
;
int64_t
*
prach_config_info_p
;
NR_RACH_ConfigCommon_t
*
setup
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
;
NR_FrequencyInfoDL_t
*
frequencyInfoDL
=
scc
->
downlinkConfigCommon
->
frequencyInfoDL
;
NR_RACH_ConfigCommon_t
*
setup
=
(
mac
->
scc
)
?
mac
->
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
:
mac
->
scc_SIB
->
uplinkConfigCommon
->
initialUplinkBWP
.
rach_ConfigCommon
->
choice
.
setup
;
NR_RACH_ConfigGeneric_t
*
rach_ConfigGeneric
=
&
setup
->
rach_ConfigGeneric
;
config_index
=
rach_ConfigGeneric
->
prach_ConfigurationIndex
;
if
(
setup
->
msg1_SubcarrierSpacing
)
//L139
mu
=
*
setup
->
msg1_SubcarrierSpacing
;
else
mu
=
frequencyInfoDL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
;
//L839 I don't think this is supported by UE looking at the code below
AssertFatal
(
1
==
0
,
"Long PRACH not supported
\n
"
);
pointa
=
frequencyInfoDL
->
absoluteFrequencyPointA
;
msg1_FDM
=
rach_ConfigGeneric
->
msg1_FDM
;
switch
(
msg1_FDM
){
...
...
@@ -1037,12 +1039,14 @@ static void build_ro_list(NR_ServingCellConfigCommon_t *scc, uint8_t unpaired) {
// ==============================
// WIP: For now assume no rejected PRACH occasions because of conflict with SSB or TDD_UL_DL_ConfigurationCommon schedule
// Identify the proper PRACH Configuration Index table according to the operating frequency
LOG_D
(
MAC
,
"Pointa %u, mu = %u, PRACH config index = %u, unpaired = %u
\n
"
,
pointa
,
mu
,
config_index
,
unpaired
);
int
unpaired
=
mac
->
phy_config
.
config_req
.
cell_config
.
frame_duplex_type
;
prach_config_info_p
=
get_prach_config_info
(
pointa
,
config_index
,
unpaired
);
prach_config_info_p
=
get_prach_config_info
(
mac
->
frequency_range
,
config_index
,
unpaired
);
if
(
pointa
>
2016666
)
{
//FR2
// Identify the proper PRACH Configuration Index table according to the operating frequency
LOG_D
(
MAC
,
"mu = %u, PRACH config index = %u, unpaired = %u
\n
"
,
mu
,
config_index
,
unpaired
);
if
(
mac
->
frequency_range
==
FR2
)
{
//FR2
x
=
prach_config_info_p
[
2
];
y
=
prach_config_info_p
[
3
];
...
...
@@ -1160,7 +1164,7 @@ static void build_ro_list(NR_ServingCellConfigCommon_t *scc, uint8_t unpaired) {
}
// Build the list of all the valid/transmitted SSBs according to the config
static
void
build_ssb_list
(
NR_
ServingCellConfigCommon_t
*
sc
c
)
{
static
void
build_ssb_list
(
NR_
UE_MAC_INST_t
*
ma
c
)
{
// Create the list of transmitted SSBs
// ===================================
...
...
@@ -1168,6 +1172,8 @@ static void build_ssb_list(NR_ServingCellConfigCommon_t *scc) {
uint64_t
ssb_positionsInBurst
;
uint8_t
ssb_idx
=
0
;
if
(
mac
->
scc
)
{
NR_ServingCellConfigCommon_t
*
scc
=
mac
->
scc
;
switch
(
scc
->
ssb_PositionsInBurst
->
present
)
{
case
NR_ServingCellConfigCommon__ssb_PositionsInBurst_PR_shortBitmap
:
ssb_bitmap
=
&
scc
->
ssb_PositionsInBurst
->
choice
.
shortBitmap
;
...
...
@@ -1221,15 +1227,36 @@ static void build_ssb_list(NR_ServingCellConfigCommon_t *scc) {
AssertFatal
(
false
,
"ssb_PositionsInBurst not present
\n
"
);
break
;
}
}
else
{
// This is configuration from SIB1
AssertFatal
(
mac
->
scc_SIB
->
ssb_PositionsInBurst
.
groupPresence
==
NULL
,
"Handle case for >8 SSBs
\n
"
);
ssb_bitmap
=
&
mac
->
scc_SIB
->
ssb_PositionsInBurst
.
inOneGroup
;
ssb_positionsInBurst
=
BIT_STRING_to_uint8
(
ssb_bitmap
);
LOG_D
(
MAC
,
"SSB config: SSB_positions_in_burst 0x%lx
\n
"
,
ssb_positionsInBurst
);
for
(
uint8_t
bit_nb
=
7
;
bit_nb
<=
7
;
bit_nb
--
)
{
// If SSB is transmitted
if
((
ssb_positionsInBurst
>>
bit_nb
)
&
0x01
)
{
ssb_list
.
nb_tx_ssb
++
;
ssb_list
.
tx_ssb
[
ssb_idx
].
transmitted
=
true
;
LOG_D
(
MAC
,
"SSB idx %d transmitted
\n
"
,
ssb_idx
);
}
ssb_idx
++
;
}
}
}
// Map the transmitted SSBs to the ROs and create the association pattern according to the config
static
void
map_ssb_to_ro
(
NR_
ServingCellConfigCommon_t
*
sc
c
)
{
static
void
map_ssb_to_ro
(
NR_
UE_MAC_INST_t
*
ma
c
)
{
// Map SSBs to PRACH occasions
// ===========================
// WIP: Assumption: No PRACH occasion is rejected because of a conflict with SSBs or TDD_UL_DL_ConfigurationCommon schedule
NR_RACH_ConfigCommon_t
*
setup
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
;
NR_RACH_ConfigCommon_t
*
setup
=
(
mac
->
scc
)
?
mac
->
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
:
mac
->
scc_SIB
->
uplinkConfigCommon
->
initialUplinkBWP
.
rach_ConfigCommon
->
choice
.
setup
;
NR_RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB_PR
ssb_perRACH_config
=
setup
->
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
present
;
boolean_t
multiple_ssb_per_ro
;
// true if more than one or exactly one SSB per RACH occasion, false if more than one RO per SSB
...
...
@@ -1290,8 +1317,11 @@ static void map_ssb_to_ro(NR_ServingCellConfigCommon_t *scc) {
else
{
required_nb_of_prach_occasion
=
ssb_list
.
nb_tx_ssb
*
ssb_rach_ratio
;
}
required_nb_of_prach_conf_period
=
((
required_nb_of_prach_occasion
-
1
)
+
prach_assoc_pattern
.
prach_conf_period_list
[
0
].
nb_of_prach_occasion
)
/
prach_assoc_pattern
.
prach_conf_period_list
[
0
].
nb_of_prach_occasion
;
AssertFatal
(
prach_assoc_pattern
.
prach_conf_period_list
[
0
].
nb_of_prach_occasion
>
0
,
"prach_assoc_pattern.prach_conf_period_list[0].nb_of_prach_occasion shouldn't be 0 (ssb_list.nb_tx_ssb %d, ssb_rach_ratio %d
\n
"
,
ssb_list
.
nb_tx_ssb
,
ssb_rach_ratio
);
required_nb_of_prach_conf_period
=
((
required_nb_of_prach_occasion
-
1
)
+
prach_assoc_pattern
.
prach_conf_period_list
[
0
].
nb_of_prach_occasion
)
/
prach_assoc_pattern
.
prach_conf_period_list
[
0
].
nb_of_prach_occasion
;
if
(
required_nb_of_prach_conf_period
==
1
)
{
prach_assoc_pattern
.
prach_association_period_list
[
0
].
nb_of_prach_conf_period
=
1
;
...
...
@@ -1578,7 +1608,7 @@ static int get_nr_prach_info_from_ssb_index(uint8_t ssb_idx,
}
// Build the SSB to RO mapping upon RRC configuration update
void
build_ssb_to_ro_map
(
NR_
ServingCellConfigCommon_t
*
scc
,
uint8_t
unpaired
)
{
void
build_ssb_to_ro_map
(
NR_
UE_MAC_INST_t
*
mac
)
{
// Clear all the lists and maps
memset
(
&
prach_assoc_pattern
,
0
,
sizeof
(
prach_association_pattern_t
));
...
...
@@ -1586,15 +1616,15 @@ void build_ssb_to_ro_map(NR_ServingCellConfigCommon_t *scc, uint8_t unpaired){
// Build the list of all the valid RACH occasions in the maximum association pattern period according to the PRACH config
LOG_D
(
MAC
,
"Build RO list
\n
"
);
build_ro_list
(
scc
,
unpaired
);
build_ro_list
(
mac
);
// Build the list of all the valid/transmitted SSBs according to the config
LOG_D
(
MAC
,
"Build SSB list
\n
"
);
build_ssb_list
(
sc
c
);
build_ssb_list
(
ma
c
);
// Map the transmitted SSBs to the ROs and create the association pattern according to the config
LOG_D
(
MAC
,
"Map SSB to RO
\n
"
);
map_ssb_to_ro
(
sc
c
);
map_ssb_to_ro
(
ma
c
);
LOG_D
(
MAC
,
"Map SSB to RO done
\n
"
);
}
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
0fac0ee7
...
...
@@ -418,7 +418,14 @@ uint8_t do_SIB1_NR(rrc_gNB_carrier_data_t *carrier,
nrMultiBandInfo
->
freqBandIndicatorNR
=
configuration
->
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
frequencyBandList
.
list
.
array
[
i
];
ASN_SEQUENCE_ADD
(
&
sib1
->
servingCellConfigCommon
->
downlinkConfigCommon
.
frequencyInfoDL
.
frequencyBandList
.
list
,
nrMultiBandInfo
);
}
sib1
->
servingCellConfigCommon
->
downlinkConfigCommon
.
frequencyInfoDL
.
offsetToPointA
=
configuration
->
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
offsetToCarrier
;
int
ref_scs
;
if
(
configuration
->
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
absoluteFrequencyPointA
<
600000
)
ref_scs
=
0
;
// 15 khz
if
(
configuration
->
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
absoluteFrequencyPointA
>
2016666
)
ref_scs
=
3
;
// 60 khz
uint32_t
absolute_diff
=
(
*
configuration
->
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
absoluteFrequencySSB
-
configuration
->
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
absoluteFrequencyPointA
);
sib1
->
servingCellConfigCommon
->
downlinkConfigCommon
.
frequencyInfoDL
.
offsetToPointA
=
(
absolute_diff
/
12
)
-
(
10
<<
(
configuration
->
scc
->
downlinkConfigCommon
->
initialDownlinkBWP
->
genericParameters
.
subcarrierSpacing
-
ref_scs
));
for
(
int
i
=
0
;
i
<
configuration
->
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
scs_SpecificCarrierList
.
list
.
count
;
i
++
)
{
ASN_SEQUENCE_ADD
(
&
sib1
->
servingCellConfigCommon
->
downlinkConfigCommon
.
frequencyInfoDL
.
scs_SpecificCarrierList
.
list
,
configuration
->
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
scs_SpecificCarrierList
.
list
.
array
[
i
]);
}
...
...
openair2/RRC/NR_UE/rrc_UE.c
View file @
0fac0ee7
...
...
@@ -589,7 +589,7 @@ int8_t nr_rrc_ue_decode_NR_BCCH_BCH_Message(
// (void *)&bcch_message->message.choice.mib,
// sizeof(NR_MIB_t) );
nr_rrc_mac_config_req_ue
(
0
,
0
,
0
,
mib
,
NULL
);
nr_rrc_mac_config_req_ue
(
0
,
0
,
0
,
mib
,
NULL
,
NULL
);
}
return
0
;
...
...
@@ -1198,12 +1198,16 @@ int8_t nr_rrc_ue_decode_NR_BCCH_DL_SCH_Message(
// FIXME: improve condition for the RA trigger
// Check for on-demand not broadcasted SI
check_requested_SI_List
(
module_id
,
NR_UE_rrc_inst
[
module_id
].
requested_SI_List
,
*
sib1
);
if
(
nr_rrc_get_state
(
module_id
)
=
=
RRC_STATE_IDLE_NR
)
{
if
(
nr_rrc_get_state
(
module_id
)
<
=
RRC_STATE_IDLE_NR
)
{
NR_UE_rrc_inst
[
module_id
].
ra_trigger
=
INITIAL_ACCESS_FROM_RRC_IDLE
;
// TODO: remove flag after full RA procedures implemented
get_softmodem_params
()
->
do_ra
=
1
;
LOG_I
(
PHY
,
"Setting state to NR_RRC_SI_RECEIVED
\n
"
);
nr_rrc_set_state
(
module_id
,
NR_RRC_SI_RECEIVED
)
;
}
// take ServingCellConfigCommon and configure L1/L2
NR_UE_rrc_inst
[
module_id
].
servingCellConfigCommonSIB
=
sib1
->
servingCellConfigCommon
;
nr_rrc_mac_config_req_ue
(
module_id
,
0
,
0
,
NULL
,
sib1
->
servingCellConfigCommon
,
NULL
);
nr_rrc_ue_generate_ra_msg
(
module_id
,
gNB_index
);
}
else
{
LOG_E
(
NR_RRC
,
"SIB1 not decoded
\n
"
);
}
...
...
openair2/RRC/NR_UE/rrc_defs.h
View file @
0fac0ee7
...
...
@@ -105,6 +105,7 @@ typedef struct NR_UE_RRC_INST_s {
NR_MeasConfig_t
*
meas_config
;
NR_CellGroupConfig_t
*
cell_group_config
;
NR_ServingCellConfigCommonSIB_t
*
servingCellConfigCommonSIB
;
NR_RadioBearerConfig_t
*
radio_bearer_config
;
NR_MeasObjectToAddMod_t
*
MeasObj
[
NB_CNX_UE
][
MAX_MEAS_OBJ
];
...
...
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