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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
6f4efda1
Commit
6f4efda1
authored
Feb 09, 2024
by
francescomani
Committed by
sagar arora
May 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvements in handling quantityConfig
parent
6823a300
Changes
2
Hide 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 @
6f4efda1
...
@@ -1254,6 +1254,29 @@ static void handle_reportconfig_addmod(rrcPerNB_t *rrc, struct NR_ReportConfigTo
...
@@ -1254,6 +1254,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
)
static
void
nr_rrc_ue_process_measConfig
(
rrcPerNB_t
*
rrc
,
NR_MeasConfig_t
*
const
measConfig
)
{
{
int
i
;
int
i
;
...
@@ -1271,6 +1294,9 @@ static void nr_rrc_ue_process_measConfig(rrcPerNB_t *rrc, NR_MeasConfig_t *const
...
@@ -1271,6 +1294,9 @@ static void nr_rrc_ue_process_measConfig(rrcPerNB_t *rrc, NR_MeasConfig_t *const
if
(
measConfig
->
reportConfigToAddModList
)
if
(
measConfig
->
reportConfigToAddModList
)
handle_reportconfig_addmod
(
rrc
,
measConfig
->
reportConfigToAddModList
);
handle_reportconfig_addmod
(
rrc
,
measConfig
->
reportConfigToAddModList
);
if
(
measConfig
->
quantityConfig
)
handle_quantityconfig
(
rrc
,
measConfig
->
quantityConfig
);
if
(
measConfig
->
measIdToRemoveList
!=
NULL
)
{
if
(
measConfig
->
measIdToRemoveList
!=
NULL
)
{
for
(
i
=
0
;
i
<
measConfig
->
measIdToRemoveList
->
list
.
count
;
i
++
)
{
for
(
i
=
0
;
i
<
measConfig
->
measIdToRemoveList
->
list
.
count
;
i
++
)
{
ind
=
*
measConfig
->
measIdToRemoveList
->
list
.
array
[
i
];
ind
=
*
measConfig
->
measIdToRemoveList
->
list
.
array
[
i
];
...
@@ -1292,16 +1318,6 @@ static void nr_rrc_ue_process_measConfig(rrcPerNB_t *rrc, NR_MeasConfig_t *const
...
@@ -1292,16 +1318,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
(
measConfig
->
measGapConfig
!=
NULL
)
{
if
(
rrc
->
measGapConfig
)
{
if
(
rrc
->
measGapConfig
)
{
memcpy
(
rrc
->
measGapConfig
,
(
char
*
)
measConfig
->
measGapConfig
,
sizeof
(
NR_MeasGapConfig_t
));
memcpy
(
rrc
->
measGapConfig
,
(
char
*
)
measConfig
->
measGapConfig
,
sizeof
(
NR_MeasGapConfig_t
));
...
...
openair2/RRC/NR_UE/rrc_defs.h
View file @
6f4efda1
...
@@ -71,6 +71,7 @@
...
@@ -71,6 +71,7 @@
#define MAX_MEAS_OBJ 7
#define MAX_MEAS_OBJ 7
#define MAX_MEAS_CONFIG 7
#define MAX_MEAS_CONFIG 7
#define MAX_MEAS_ID 7
#define MAX_MEAS_ID 7
#define MAX_QUANTITY_CONFIG 2
typedef
uint32_t
channel_t
;
typedef
uint32_t
channel_t
;
...
@@ -179,7 +180,7 @@ typedef enum { RB_NOT_PRESENT, RB_ESTABLISHED, RB_SUSPENDED } NR_RB_status_t;
...
@@ -179,7 +180,7 @@ typedef enum { RB_NOT_PRESENT, RB_ESTABLISHED, RB_SUSPENDED } NR_RB_status_t;
typedef
struct
rrcPerNB
{
typedef
struct
rrcPerNB
{
NR_MeasObjectToAddMod_t
*
MeasObj
[
MAX_MEAS_OBJ
];
NR_MeasObjectToAddMod_t
*
MeasObj
[
MAX_MEAS_OBJ
];
NR_ReportConfigToAddMod_t
*
ReportConfig
[
MAX_MEAS_CONFIG
];
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_MeasIdToAddMod_t
*
MeasId
[
MAX_MEAS_ID
];
NR_VarMeasReport_t
*
MeasReport
[
MAX_MEAS_ID
];
NR_VarMeasReport_t
*
MeasReport
[
MAX_MEAS_ID
];
NR_MeasGapConfig_t
*
measGapConfig
;
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