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
lizhongxiao
OpenXG-RAN
Commits
eeca8f9f
Commit
eeca8f9f
authored
Feb 09, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvements in handling quantityConfig
parent
809694cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+26
-10
openair2/RRC/NR_UE/rrc_defs.h
openair2/RRC/NR_UE/rrc_defs.h
+2
-1
No files found.
openair2/RRC/NR_UE/rrc_UE.c
View file @
eeca8f9f
...
...
@@ -1191,6 +1191,29 @@ static void handle_reportconfig_addmod(rrcPerNB_t *rrc, struct NR_ReportConfigTo
}
}
static
void
handle_quantityconfig
(
rrcPerNB_t
*
rrc
,
NR_QuantityConfig_t
*
quantityConfig
)
{
if
(
quantityConfig
->
quantityConfigNR_List
)
{
for
(
int
i
=
0
;
i
<
quantityConfig
->
quantityConfigNR_List
->
list
.
count
;
i
++
)
{
NR_QuantityConfigNR_t
*
quantityNR
=
quantityConfig
->
quantityConfigNR_List
->
list
.
array
[
i
];
if
(
!
rrc
->
QuantityConfig
[
i
])
rrc
->
QuantityConfig
[
i
]
=
calloc
(
1
,
sizeof
(
*
rrc
->
QuantityConfig
[
i
]));
rrc
->
QuantityConfig
[
i
]
->
quantityConfigCell
=
quantityNR
->
quantityConfigCell
;
if
(
quantityNR
->
quantityConfigRS_Index
)
UPDATE_IE
(
rrc
->
QuantityConfig
[
i
]
->
quantityConfigRS_Index
,
quantityNR
->
quantityConfigRS_Index
,
struct
NR_QuantityConfigRS
);
}
}
for
(
int
j
=
0
;
j
<
MAX_MEAS_ID
;
j
++
)
{
// for each measId included in the measIdList
if
(
rrc
->
MeasId
[
j
])
{
// remove the measurement reporting entry for this measId if included
asn1cFreeStruc
(
asn_DEF_NR_VarMeasReport
,
rrc
->
MeasReport
[
j
]);
// TODO stop the periodical reporting timer or timer T321, whichever one is running
// and reset the associated information (e.g. timeToTrigger) for this measId
}
}
}
static
void
nr_rrc_ue_process_measConfig
(
rrcPerNB_t
*
rrc
,
NR_MeasConfig_t
*
const
measConfig
)
{
int
i
;
...
...
@@ -1208,6 +1231,9 @@ static void nr_rrc_ue_process_measConfig(rrcPerNB_t *rrc, NR_MeasConfig_t *const
if
(
measConfig
->
reportConfigToAddModList
)
handle_reportconfig_addmod
(
rrc
,
measConfig
->
reportConfigToAddModList
);
if
(
measConfig
->
quantityConfig
)
handle_quantityconfig
(
rrc
,
measConfig
->
quantityConfig
);
if
(
measConfig
->
measIdToRemoveList
!=
NULL
)
{
for
(
i
=
0
;
i
<
measConfig
->
measIdToRemoveList
->
list
.
count
;
i
++
)
{
ind
=
*
measConfig
->
measIdToRemoveList
->
list
.
array
[
i
];
...
...
@@ -1229,16 +1255,6 @@ static void nr_rrc_ue_process_measConfig(rrcPerNB_t *rrc, NR_MeasConfig_t *const
}
}
if
(
measConfig
->
quantityConfig
!=
NULL
)
{
if
(
rrc
->
QuantityConfig
)
{
LOG_D
(
NR_RRC
,
"Modifying Quantity Configuration
\n
"
);
memcpy
(
rrc
->
QuantityConfig
,
(
char
*
)
measConfig
->
quantityConfig
,
sizeof
(
NR_QuantityConfig_t
));
}
else
{
LOG_D
(
NR_RRC
,
"Adding Quantity configuration
\n
"
);
rrc
->
QuantityConfig
=
measConfig
->
quantityConfig
;
}
}
if
(
measConfig
->
measGapConfig
!=
NULL
)
{
if
(
rrc
->
measGapConfig
)
{
memcpy
(
rrc
->
measGapConfig
,
(
char
*
)
measConfig
->
measGapConfig
,
sizeof
(
NR_MeasGapConfig_t
));
...
...
openair2/RRC/NR_UE/rrc_defs.h
View file @
eeca8f9f
...
...
@@ -67,6 +67,7 @@
#define MAX_MEAS_OBJ 7
#define MAX_MEAS_CONFIG 7
#define MAX_MEAS_ID 7
#define MAX_QUANTITY_CONFIG 2
typedef
uint32_t
channel_t
;
...
...
@@ -177,7 +178,7 @@ typedef enum { RB_NOT_PRESENT, RB_ESTABLISHED, RB_SUSPENDED } NR_RB_status_t;
typedef
struct
rrcPerNB
{
NR_MeasObjectToAddMod_t
*
MeasObj
[
MAX_MEAS_OBJ
];
NR_ReportConfigToAddMod_t
*
ReportConfig
[
MAX_MEAS_CONFIG
];
NR_QuantityConfig
_t
*
QuantityConfig
;
NR_QuantityConfig
NR_t
*
QuantityConfig
[
MAX_QUANTITY_CONFIG
]
;
NR_MeasIdToAddMod_t
*
MeasId
[
MAX_MEAS_ID
];
NR_VarMeasReport_t
*
MeasReport
[
MAX_MEAS_ID
];
NR_MeasGapConfig_t
*
measGapConfig
;
...
...
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