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
9992a19a
Commit
9992a19a
authored
Apr 11, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release SRS/PUCCH as described in 331 section 5.3.12
parent
bff1f063
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+41
-0
openair2/LAYER2/NR_MAC_UE/mac_proto.h
openair2/LAYER2/NR_MAC_UE/mac_proto.h
+1
-1
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
9992a19a
...
@@ -2045,6 +2045,47 @@ static void configure_servingcell_info(NR_UE_ServingCell_Info_t *sc_info, NR_Ser
...
@@ -2045,6 +2045,47 @@ static void configure_servingcell_info(NR_UE_ServingCell_Info_t *sc_info, NR_Ser
}
}
}
}
/// This function implements 38.331 Section 5.3.12: UE actions upon PUCCH/SRS release request
void
release_PUCCH_SRS
(
NR_UE_MAC_INST_t
*
mac
)
{
// release PUCCH-CSI-Resources configured in CSI-ReportConfig
NR_UE_ServingCell_Info_t
*
sc_info
=
&
mac
->
sc_info
;
NR_CSI_MeasConfig_t
*
meas_config
=
sc_info
->
csi_MeasConfig
;
if
(
meas_config
&&
meas_config
->
csi_ReportConfigToAddModList
)
{
for
(
int
i
=
0
;
i
<
meas_config
->
csi_ReportConfigToAddModList
->
list
.
count
;
i
++
)
{
struct
NR_CSI_ReportConfig__reportConfigType
*
type
=
&
meas_config
->
csi_ReportConfigToAddModList
->
list
.
array
[
i
]
->
reportConfigType
;
switch
(
type
->
present
)
{
case
NR_CSI_ReportConfig__reportConfigType_PR_periodic
:
for
(
int
j
=
type
->
choice
.
periodic
->
pucch_CSI_ResourceList
.
list
.
count
;
j
>
0
;
j
--
)
asn_sequence_del
(
&
type
->
choice
.
periodic
->
pucch_CSI_ResourceList
.
list
,
j
-
1
,
1
);
break
;
case
NR_CSI_ReportConfig__reportConfigType_PR_semiPersistentOnPUCCH
:
for
(
int
j
=
type
->
choice
.
semiPersistentOnPUCCH
->
pucch_CSI_ResourceList
.
list
.
count
;
j
>
0
;
j
--
)
asn_sequence_del
(
&
type
->
choice
.
semiPersistentOnPUCCH
->
pucch_CSI_ResourceList
.
list
,
j
-
1
,
1
);
break
;
case
NR_CSI_ReportConfig__reportConfigType_PR_semiPersistentOnPUSCH
:
case
NR_CSI_ReportConfig__reportConfigType_PR_aperiodic
:
// no PUCCH config to release
break
;
default
:
AssertFatal
(
false
,
"Invalid CSI report type
\n
"
);
}
}
}
for
(
int
bwp
=
0
;
bwp
<
mac
->
ul_BWPs
.
count
;
bwp
++
)
{
// release SchedulingRequestResourceConfig instances configured in PUCCH-Config
NR_PUCCH_Config_t
*
pucch_Config
=
mac
->
ul_BWPs
.
array
[
bwp
]
->
pucch_Config
;
for
(
int
j
=
pucch_Config
->
schedulingRequestResourceToAddModList
->
list
.
count
;
j
>
0
;
j
--
)
asn_sequence_del
(
&
pucch_Config
->
schedulingRequestResourceToAddModList
->
list
,
j
-
1
,
1
);
// release SRS-Resource instances configured in SRS-Config
// TODO not clear if only SRS-Resources or also the ResourceSet should be released
NR_SRS_Config_t
*
srs_Config
=
mac
->
ul_BWPs
.
array
[
bwp
]
->
srs_Config
;
for
(
int
j
=
srs_Config
->
srs_ResourceToAddModList
->
list
.
count
;
j
>
0
;
j
--
)
asn_sequence_del
(
&
srs_Config
->
srs_ResourceToAddModList
->
list
,
j
-
1
,
1
);
}
}
void
release_dl_BWP
(
NR_UE_MAC_INST_t
*
mac
,
int
index
)
void
release_dl_BWP
(
NR_UE_MAC_INST_t
*
mac
,
int
index
)
{
{
NR_UE_DL_BWP_t
*
bwp
=
mac
->
dl_BWPs
.
array
[
index
];
NR_UE_DL_BWP_t
*
bwp
=
mac
->
dl_BWPs
.
array
[
index
];
...
...
openair2/LAYER2/NR_MAC_UE/mac_proto.h
View file @
9992a19a
...
@@ -293,7 +293,7 @@ void nr_get_prach_resources(NR_UE_MAC_INST_t *mac,
...
@@ -293,7 +293,7 @@ void nr_get_prach_resources(NR_UE_MAC_INST_t *mac,
void
prepare_msg4_feedback
(
NR_UE_MAC_INST_t
*
mac
,
int
pid
,
int
ack_nack
);
void
prepare_msg4_feedback
(
NR_UE_MAC_INST_t
*
mac
,
int
pid
,
int
ack_nack
);
void
configure_initial_pucch
(
PUCCH_sched_t
*
pucch
,
int
res_ind
);
void
configure_initial_pucch
(
PUCCH_sched_t
*
pucch
,
int
res_ind
);
void
release_PUCCH_SRS
(
NR_UE_MAC_INST_t
*
mac
);
void
nr_ue_reset_sync_state
(
NR_UE_MAC_INST_t
*
mac
);
void
nr_ue_reset_sync_state
(
NR_UE_MAC_INST_t
*
mac
);
void
nr_ue_send_synch_request
(
NR_UE_MAC_INST_t
*
mac
,
module_id_t
module_id
,
int
cc_id
,
int
cell_id
);
void
nr_ue_send_synch_request
(
NR_UE_MAC_INST_t
*
mac
,
module_id_t
module_id
,
int
cc_id
,
int
cell_id
);
...
...
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