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
809694cf
Commit
809694cf
authored
Feb 09, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvements in handling reportConfig addition, modification and removal
parent
a7bff952
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
29 deletions
+51
-29
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+48
-29
openair2/RRC/NR_UE/rrc_defs.h
openair2/RRC/NR_UE/rrc_defs.h
+3
-0
No files found.
openair2/RRC/NR_UE/rrc_UE.c
View file @
809694cf
...
...
@@ -1057,11 +1057,9 @@ static void handle_measobj_remove(rrcPerNB_t *rrc, struct NR_MeasObjectToRemoveL
// remove all measId associated with this measObjectId from the measIdList
for
(
int
j
=
0
;
j
<
MAX_MEAS_ID
;
j
++
)
{
if
(
rrc
->
MeasId
[
j
]
&&
rrc
->
MeasId
[
j
]
->
measObjectId
==
id
)
{
NR_ReportConfigId_t
report_id
=
rrc
->
MeasId
[
j
]
->
reportConfigId
;
asn1cFreeStruc
(
asn_DEF_NR_MeasIdToAddMod
,
rrc
->
MeasId
[
j
]);
// remove the measurement reporting entry for this measId if included
// TODO verify this is correct
asn1cFreeStruc
(
asn_DEF_NR_ReportConfigToAddMod
,
rrc
->
ReportConfig
[
report_id
]);
asn1cFreeStruc
(
asn_DEF_NR_VarMeasReport
,
rrc
->
MeasReport
[
j
]);
// TODO stop the periodical reporting timer or timer T321, whichever is running,
// and reset the associated information (e.g. timeToTrigger) for this measId
}
...
...
@@ -1150,11 +1148,53 @@ static void handle_measobj_addmod(rrcPerNB_t *rrc, struct NR_MeasObjectToAddModL
}
}
static
void
handle_reportconfig_remove
(
rrcPerNB_t
*
rrc
,
struct
NR_ReportConfigToRemoveList
*
remove_list
)
{
for
(
int
i
=
0
;
i
<
remove_list
->
list
.
count
;
i
++
)
{
NR_ReportConfigId_t
id
=
*
remove_list
->
list
.
array
[
i
];
// remove the entry with the matching reportConfigId from the reportConfigList
asn1cFreeStruc
(
asn_DEF_NR_ReportConfigToAddMod
,
rrc
->
ReportConfig
[
id
]);
for
(
int
j
=
0
;
j
<
MAX_MEAS_ID
;
j
++
)
{
if
(
rrc
->
MeasId
[
j
]
&&
rrc
->
MeasId
[
j
]
->
reportConfigId
==
id
)
{
// remove all measId associated with the reportConfigId from the measIdList
asn1cFreeStruc
(
asn_DEF_NR_MeasIdToAddMod
,
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
handle_reportconfig_addmod
(
rrcPerNB_t
*
rrc
,
struct
NR_ReportConfigToAddModList
*
addmod_list
)
{
for
(
int
i
=
0
;
i
<
addmod_list
->
list
.
count
;
i
++
)
{
NR_ReportConfigToAddMod_t
*
rep
=
addmod_list
->
list
.
array
[
i
];
if
(
rep
->
reportConfig
.
present
!=
NR_ReportConfigToAddMod__reportConfig_PR_reportConfigNR
)
{
LOG_E
(
NR_RRC
,
"Cannot handle reportConfig type other than NR
\n
"
);
continue
;
}
NR_ReportConfigId_t
id
=
rep
->
reportConfigId
;
if
(
rrc
->
ReportConfig
[
id
])
{
for
(
int
j
=
0
;
j
<
MAX_MEAS_ID
;
j
++
)
{
// for each measId associated with this reportConfigId included in the measIdList
if
(
rrc
->
MeasId
[
j
]
&&
rrc
->
MeasId
[
j
]
->
reportConfigId
==
id
)
{
// 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
}
}
}
UPDATE_IE
(
rrc
->
ReportConfig
[
id
],
addmod_list
->
list
.
array
[
i
],
NR_ReportConfigToAddMod_t
);
}
}
static
void
nr_rrc_ue_process_measConfig
(
rrcPerNB_t
*
rrc
,
NR_MeasConfig_t
*
const
measConfig
)
{
int
i
;
long
ind
;
NR_ReportConfigToAddMod_t
*
reportConfig
=
NULL
;
if
(
measConfig
->
measObjectToRemoveList
)
handle_measobj_remove
(
rrc
,
measConfig
->
measObjectToRemoveList
);
...
...
@@ -1162,32 +1202,11 @@ static void nr_rrc_ue_process_measConfig(rrcPerNB_t *rrc, NR_MeasConfig_t *const
if
(
measConfig
->
measObjectToAddModList
)
handle_measobj_addmod
(
rrc
,
measConfig
->
measObjectToAddModList
);
if
(
measConfig
->
reportConfigToRemoveList
!=
NULL
)
{
for
(
i
=
0
;
i
<
measConfig
->
reportConfigToRemoveList
->
list
.
count
;
i
++
)
{
ind
=
*
measConfig
->
reportConfigToRemoveList
->
list
.
array
[
i
];
free
(
rrc
->
ReportConfig
[
ind
-
1
]);
}
}
if
(
measConfig
->
reportConfigToRemoveList
)
handle_reportconfig_remove
(
rrc
,
measConfig
->
reportConfigToRemoveList
);
if
(
measConfig
->
reportConfigToAddModList
!=
NULL
)
{
LOG_I
(
NR_RRC
,
"Report Configuration List is present
\n
"
);
for
(
i
=
0
;
i
<
measConfig
->
reportConfigToAddModList
->
list
.
count
;
i
++
)
{
ind
=
measConfig
->
reportConfigToAddModList
->
list
.
array
[
i
]
->
reportConfigId
;
reportConfig
=
measConfig
->
reportConfigToAddModList
->
list
.
array
[
i
];
if
(
rrc
->
ReportConfig
[
ind
-
1
])
{
LOG_I
(
NR_RRC
,
"Modifying Report Configuration %ld
\n
"
,
ind
-
1
);
memcpy
(
rrc
->
ReportConfig
[
ind
-
1
],
(
char
*
)
measConfig
->
reportConfigToAddModList
->
list
.
array
[
i
],
sizeof
(
NR_ReportConfigToAddMod_t
));
}
else
{
LOG_D
(
NR_RRC
,
"Adding Report Configuration %ld %p
\n
"
,
ind
-
1
,
measConfig
->
reportConfigToAddModList
->
list
.
array
[
i
]);
if
(
reportConfig
->
reportConfig
.
present
==
NR_ReportConfigToAddMod__reportConfig_PR_reportConfigNR
)
{
rrc
->
ReportConfig
[
ind
-
1
]
=
measConfig
->
reportConfigToAddModList
->
list
.
array
[
i
];
}
}
}
}
if
(
measConfig
->
reportConfigToAddModList
)
handle_reportconfig_addmod
(
rrc
,
measConfig
->
reportConfigToAddModList
);
if
(
measConfig
->
measIdToRemoveList
!=
NULL
)
{
for
(
i
=
0
;
i
<
measConfig
->
measIdToRemoveList
->
list
.
count
;
i
++
)
{
...
...
openair2/RRC/NR_UE/rrc_defs.h
View file @
809694cf
...
...
@@ -56,6 +56,8 @@
#include "NR_UE-NR-Capability.h"
#include "NR_SL-PreconfigurationNR-r16.h"
#include "NR_MasterInformationBlockSidelink.h"
#include "NR_MeasurementReport.h"
#include "NR_VarMeasReport.h"
#include "RRC/NR/nr_rrc_common.h"
#include "as_message.h"
...
...
@@ -177,6 +179,7 @@ typedef struct rrcPerNB {
NR_ReportConfigToAddMod_t
*
ReportConfig
[
MAX_MEAS_CONFIG
];
NR_QuantityConfig_t
*
QuantityConfig
;
NR_MeasIdToAddMod_t
*
MeasId
[
MAX_MEAS_ID
];
NR_VarMeasReport_t
*
MeasReport
[
MAX_MEAS_ID
];
NR_MeasGapConfig_t
*
measGapConfig
;
NR_RB_status_t
Srb
[
NR_NUM_SRB
];
NR_RB_status_t
status_DRBs
[
MAX_DRBS_PER_UE
];
...
...
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