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
spbro
OpenXG-RAN
Commits
f248b2fd
Commit
f248b2fd
authored
Oct 10, 2023
by
sriharsha
Committed by
Sriharsha Korada
Nov 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: avoid freeing rlc config structure
parent
e5ab3e02
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+1
-1
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
+1
-1
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+3
-3
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+4
-2
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
f248b2fd
...
...
@@ -649,7 +649,7 @@ void nr_rrc_mac_config_req_ue_logicalChannelBearer(module_id_t module_id,
}
// reorder the logical channels as per its priority
qsort_r
(
(
void
*
)
mac
->
lc_ordered_info
.
lcids_ordered
,
rlc_toadd_list
->
list
.
count
,
sizeof
(
uint32_t
),
lcid_cmp
,
(
void
*
)
mac
);
qsort_r
(
mac
->
lc_ordered_info
.
lcids_ordered
,
rlc_toadd_list
->
list
.
count
,
sizeof
(
uint32_t
),
lcid_cmp
,
mac
);
for
(
uint8_t
i
=
0
;
i
<
rlc_toadd_list
->
list
.
count
;
i
++
)
{
mac
->
lc_ordered_info
.
logicalChannelConfig_ordered
[
i
]
=
mac
->
logicalChannelConfig
[
mac
->
lc_ordered_info
.
lcids_ordered
[
i
]
-
1
];
}
...
...
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
View file @
f248b2fd
...
...
@@ -106,7 +106,7 @@ NR_UE_MAC_INST_t * nr_l2_init_ue(NR_UE_RRC_INST_t* rrc_inst) {
nr_rrc_mac_config_req_ue_logicalChannelBearer
(
0
,
&
rlc_toadd_list
,
NULL
);
// free memory
free_nr_noS1_bearer_config
(
&
rbconfig
,
&
rlc_rbconfig
);
free_nr_noS1_bearer_config
(
&
rbconfig
,
NULL
);
}
}
else
{
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
f248b2fd
...
...
@@ -3072,9 +3072,9 @@ uint8_t nr_ue_get_sdu(module_id_t module_idP,
for
(
uint8_t
id
=
0
;
id
<
avail_lcids_count
;
id
++
)
{
/*
loop over all logical channels in the order of priority. As stated in
ts spec, in the first run, only prioritized
number of bytes are taken out from the correspondinf RLC buffers of all active logical channels and if there is still
space availble in the MAC PDU, then from the next run all the remaining data from the higher priority logical channel
loop over all logical channels in the order of priority. As stated in
TS138.321 Section 5.4.3.1, in the first run, only
prioritized number of bytes are taken out from the corresponding RLC buffers of all active logical channels and if there is
s
till s
pace availble in the MAC PDU, then from the next run all the remaining data from the higher priority logical channel
is placed in the MAC PDU before going on to next high priority logical channel
*/
int
lcid
=
lcids_bj_pos
[
id
];
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
f248b2fd
...
...
@@ -460,8 +460,10 @@ void free_nr_noS1_bearer_config(NR_RadioBearerConfig_t **rbconfig,
{
ASN_STRUCT_FREE
(
asn_DEF_NR_RadioBearerConfig
,
*
rbconfig
);
*
rbconfig
=
NULL
;
ASN_STRUCT_FREE
(
asn_DEF_NR_RLC_BearerConfig
,
*
rlc_rbconfig
);
*
rlc_rbconfig
=
NULL
;
if
(
rlc_rbconfig
!=
NULL
)
{
ASN_STRUCT_FREE
(
asn_DEF_NR_RLC_BearerConfig
,
*
rlc_rbconfig
);
*
rlc_rbconfig
=
NULL
;
}
}
//------------------------------------------------------------------------------
...
...
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