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
0d9268ec
Commit
0d9268ec
authored
Mar 10, 2023
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update NR RRC to version 17.3.0
parent
7975b90d
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24954 additions
and
66 deletions
+24954
-66
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+2
-2
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
+2
-2
openair2/RRC/NR/MESSAGES/ASN.1/extract_asn1_from_spce.pl
openair2/RRC/NR/MESSAGES/ASN.1/extract_asn1_from_spce.pl
+43
-49
openair2/RRC/NR/MESSAGES/ASN.1/nr-rrc-17.3.0.asn1
openair2/RRC/NR/MESSAGES/ASN.1/nr-rrc-17.3.0.asn1
+20709
-0
openair2/RRC/NR/MESSAGES/ASN.1/nr-rrc-17.3.0.cmake
openair2/RRC/NR/MESSAGES/ASN.1/nr-rrc-17.3.0.cmake
+4183
-0
openair2/RRC/NR/MESSAGES/CMakeLists.txt
openair2/RRC/NR/MESSAGES/CMakeLists.txt
+3
-1
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+1
-1
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+11
-11
No files found.
openair2/GNB_APP/gnb_config.c
View file @
0d9268ec
...
...
@@ -1937,11 +1937,11 @@ int RCconfig_NR_DU_F1(MessageDef *msg_p, uint32_t i) {
int
du_check_plmn_identity
(
rrc_gNB_carrier_data_t
*
carrier
,
uint16_t
mcc
,
uint16_t
mnc
,
uint8_t
mnc_digit_length
)
{
NR_SIB1_t
*
sib1
=
carrier
->
siblock1
->
message
.
choice
.
c1
->
choice
.
systemInformationBlockType1
;
AssertFatal
(
sib1
->
cellAccessRelatedInfo
.
plmn_IdentityList
.
list
.
array
[
0
]
->
plmn_IdentityList
.
list
.
count
>
0
,
AssertFatal
(
sib1
->
cellAccessRelatedInfo
.
plmn_Identity
Info
List
.
list
.
array
[
0
]
->
plmn_IdentityList
.
list
.
count
>
0
,
"plmn info isn't there
\n
"
);
AssertFatal
(
mnc_digit_length
==
2
||
mnc_digit_length
==
3
,
"impossible mnc_digit_length %d
\n
"
,
mnc_digit_length
);
NR_PLMN_Identity_t
*
plmn_Identity
=
sib1
->
cellAccessRelatedInfo
.
plmn_IdentityList
.
list
.
array
[
0
]
NR_PLMN_Identity_t
*
plmn_Identity
=
sib1
->
cellAccessRelatedInfo
.
plmn_Identity
Info
List
.
list
.
array
[
0
]
->
plmn_IdentityList
.
list
.
array
[
0
];
// check if mcc is different and return failure if so
...
...
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
View file @
0d9268ec
...
...
@@ -312,11 +312,11 @@ int8_t nr_get_DELTA_PREAMBLE(module_id_t mod_id, int CC_id, uint16_t prach_forma
mu
=
4
;
break
;
case
NR_SubcarrierSpacing_
spare3
:
case
NR_SubcarrierSpacing_
kHz480_v1700
:
mu
=
5
;
break
;
case
NR_SubcarrierSpacing_
spare2
:
case
NR_SubcarrierSpacing_
kHz960_v1700
:
mu
=
6
;
break
;
...
...
openair2/RRC/NR/MESSAGES/ASN.1/extract_asn1_from_spce.pl
View file @
0d9268ec
...
...
@@ -12,68 +12,62 @@ $NR_asn_output_file = "NR-RRC-38331.asn";
sub
extract_asn1
;
open
(
INPUT_FILE
,
"
<
$input_file
")
or
die
"
Can not open file
$input_file
";
open
(
OUTPUT_FILE
,
"
>
$NR_asn_output_file
")
or
die
"
Can not open file
$NR_asn_output_file
";
while
(
<
INPUT_FILE
>
)
{
# Process the NR-RRC-Definitions section
if
(
m/NR-RRC-Definitions DEFINITIONS AUTOMATIC TAGS ::=/
){
open
(
OUTPUT_FILE
,
"
>
$NR_asn_output_file
")
or
die
"
Can not open file
$NR_asn_output_file
";
syswrite
OUTPUT_FILE
,"
$_
\n
";
syswrite
OUTPUT_FILE
,"
BEGIN
\n\n
";
syswrite
OUTPUT_FILE
,"
$_
";
# Get all the text delimited by -- ASN1START and -- ASN1STOP
extract_asn1
();
syswrite
OUTPUT_FILE
,"
END
\n\n
";
while
(
<
INPUT_FILE
>
)
{
if
(
m/PC5-RRC-Definitions DEFINITIONS AUTOMATIC TAGS ::=/
){
syswrite
OUTPUT_FILE
,"
$_
\n
";
syswrite
OUTPUT_FILE
,"
BEGIN
\n\n
";
# Get all the text delimited by -- ASN1START and -- ASN1STOP
extract_asn1
();
syswrite
OUTPUT_FILE
,"
END
\n\n
";
while
(
<
INPUT_FILE
>
)
{
if
(
m/NR-UE-Variables DEFINITIONS AUTOMATIC TAGS ::=/
){
syswrite
OUTPUT_FILE
,"
$_
\n
";
syswrite
OUTPUT_FILE
,"
BEGIN
\n\n
";
# Get all the text delimited by -- ASN1START and -- ASN1STOP
extract_asn1
();
syswrite
OUTPUT_FILE
,"
END
\n\n
";
while
(
<
INPUT_FILE
>
)
{
if
(
m/NR-Sidelink-Preconf DEFINITIONS AUTOMATIC TAGS ::=/
){
syswrite
OUTPUT_FILE
,"
$_
\n
";
syswrite
OUTPUT_FILE
,"
BEGIN
\n\n
";
# Get all the text delimited by -- ASN1START and -- ASN1STOP
extract_asn1
();
syswrite
OUTPUT_FILE
,"
END
\n\n
";
while
(
<
INPUT_FILE
>
)
{
if
(
m/NR-InterNodeDefinitions DEFINITIONS AUTOMATIC TAGS ::=/
){
syswrite
OUTPUT_FILE
,"
$_
\n
";
syswrite
OUTPUT_FILE
,"
BEGIN
\n\n
";
# Get all the text delimited by -- ASN1START and -- ASN1STOP
extract_asn1
();
syswrite
OUTPUT_FILE
,"
END
\n\n
";
}
}
}
}
}
}
}
}
close
(
OUTPUT_FILE
);
}
elsif
(
m/PC5-RRC-Definitions DEFINITIONS AUTOMATIC TAGS ::=/
){
syswrite
OUTPUT_FILE
,"
$_
";
# Get all the text delimited by -- ASN1START and -- ASN1STOP
extract_asn1
();
syswrite
OUTPUT_FILE
,"
END
\n\n
";
}
elsif
(
m/NR-UE-Variables DEFINITIONS AUTOMATIC TAGS ::=/
){
syswrite
OUTPUT_FILE
,"
$_
";
# Get all the text delimited by -- ASN1START and -- ASN1STOP
extract_asn1
();
syswrite
OUTPUT_FILE
,"
END
\n\n
";
}
elsif
(
m/NR-Sidelink-Preconf DEFINITIONS AUTOMATIC TAGS ::=/
){
syswrite
OUTPUT_FILE
,"
$_
";
# Get all the text delimited by -- ASN1START and -- ASN1STOP
extract_asn1
();
syswrite
OUTPUT_FILE
,"
END
\n\n
";
}
elsif
(
m/NR-Sidelink-DiscoveryMessage DEFINITIONS AUTOMATIC TAGS ::=/
){
syswrite
OUTPUT_FILE
,"
$_
";
# Get all the text delimited by -- ASN1START and -- ASN1STOP
extract_asn1
();
syswrite
OUTPUT_FILE
,"
END
\n\n
";
}
elsif
(
m/NR-InterNodeDefinitions DEFINITIONS AUTOMATIC TAGS ::=/
){
syswrite
OUTPUT_FILE
,"
$_
";
# Get all the text delimited by -- ASN1START and -- ASN1STOP
extract_asn1
();
syswrite
OUTPUT_FILE
,"
END
\n\n
";
}
}
close
(
OUTPUT_FILE
);
close
(
INPUT_FILE
);
# This subroutine copies the text delimited by -- ASN1START and -- ASN1STOP in INPUT_FILE
...
...
@@ -81,7 +75,7 @@ close(INPUT_FILE);
# It stops when it meets the keyword "END"
sub
extract_asn1
{
my
$line
=
<
INPUT_FILE
>
;
my
$is_asn1
=
0
;
my
$is_asn1
=
1
;
while
((
$line
ne
"
END
\n
")
&&
(
$line
ne
"
END
\r\n
")){
if
(
$line
=~
m/-- ASN1STOP/
)
{
...
...
openair2/RRC/NR/MESSAGES/ASN.1/nr-rrc-17.3.0.asn1
0 → 100644
View file @
0d9268ec
This diff is collapsed.
Click to expand it.
openair2/RRC/NR/MESSAGES/ASN.1/nr-rrc-17.3.0.cmake
0 → 100644
View file @
0d9268ec
This source diff could not be displayed because it is too large. You can
view the blob
instead.
openair2/RRC/NR/MESSAGES/CMakeLists.txt
View file @
0d9268ec
set
(
NR_RRC_VERSION 1
6 4 1
)
set
(
NR_RRC_VERSION 1
7 3 0
)
make_version
(
NR_RRC_cc
${
NR_RRC_VERSION
}
)
string
(
REPLACE
";"
"."
NR_RRC_RELEASE
"
${
NR_RRC_VERSION
}
"
)
if
(
NR_RRC_RELEASE VERSION_EQUAL
"16.4.1"
)
include
(
ASN.1/nr-rrc-16.4.1.cmake
)
elseif
(
NR_RRC_RELEASE VERSION_EQUAL
"17.3.0"
)
include
(
ASN.1/nr-rrc-17.3.0.cmake
)
else
()
message
(
FATAL_ERROR
"unknown NR_RRC_RELEASE
${
NR_RRC_RELEASE
}
"
)
endif
()
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
0d9268ec
...
...
@@ -321,7 +321,7 @@ uint16_t do_SIB1_NR(rrc_gNB_carrier_data_t *carrier,
// cellAccessRelatedInfo
// TODO : Add support for more than one PLMN
int
num_plmn
=
1
;
// int num_plmn = configuration->num_plmn;
asn1cSequenceAdd
(
sib1
->
cellAccessRelatedInfo
.
plmn_IdentityList
.
list
,
struct
NR_PLMN_IdentityInfo
,
nr_plmn_info
);
asn1cSequenceAdd
(
sib1
->
cellAccessRelatedInfo
.
plmn_Identity
Info
List
.
list
,
struct
NR_PLMN_IdentityInfo
,
nr_plmn_info
);
for
(
int
i
=
0
;
i
<
num_plmn
;
++
i
)
{
asn1cSequenceAdd
(
nr_plmn_info
->
plmn_IdentityList
.
list
,
struct
NR_PLMN_Identity
,
nr_plmn
);
asn1cCalloc
(
nr_plmn
->
mcc
,
mcc
);
...
...
openair2/RRC/NR_UE/rrc_UE.c
View file @
0d9268ec
...
...
@@ -763,22 +763,22 @@ void nr_dump_sib3( NR_SIB3_t *sib3 ) {
}
//intraFreqBlackCellList
if
(
sib3
->
intraFreq
Black
CellList
){
LOG_I
(
RRC
,
"intraFreq
Black
CellList : %p
\n
"
,
sib3
->
intraFreq
BlackCellList
);
const
int
n
=
sib3
->
intraFreq
Black
CellList
->
list
.
count
;
if
(
sib3
->
intraFreq
Excluded
CellList
){
LOG_I
(
RRC
,
"intraFreq
Excluded
CellList : %p
\n
"
,
sib3
->
intraFreq
ExcludedCellList
);
const
int
n
=
sib3
->
intraFreq
Excluded
CellList
->
list
.
count
;
for
(
int
i
=
0
;
i
<
n
;
++
i
){
LOG_I
(
RRC
,
"intraFreq
Black
CellList->start : %ld
\n
"
,
sib3
->
intraFreq
Black
CellList
->
list
.
array
[
i
]
->
start
);
LOG_I
(
RRC
,
"intraFreq
Excluded
CellList->start : %ld
\n
"
,
sib3
->
intraFreq
Excluded
CellList
->
list
.
array
[
i
]
->
start
);
if
(
sib3
->
intraFreq
Black
CellList
->
list
.
array
[
i
]
->
range
)
LOG_I
(
RRC
,
"intraFreq
Black
CellList->range : %ld
\n
"
,
*
sib3
->
intraFreq
Black
CellList
->
list
.
array
[
i
]
->
range
);
if
(
sib3
->
intraFreq
Excluded
CellList
->
list
.
array
[
i
]
->
range
)
LOG_I
(
RRC
,
"intraFreq
Excluded
CellList->range : %ld
\n
"
,
*
sib3
->
intraFreq
Excluded
CellList
->
list
.
array
[
i
]
->
range
);
else
LOG_I
(
RRC
,
"intraFreq
Black
CellList->range : not defined
\n
"
);
LOG_I
(
RRC
,
"intraFreq
Excluded
CellList->range : not defined
\n
"
);
}
}
else
{
LOG_I
(
RRC
,
"intraFreq
Black
CellList : not defined
\n
"
);
LOG_I
(
RRC
,
"intraFreq
Excluded
CellList : not defined
\n
"
);
}
//lateNonCriticalExtension
...
...
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