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
promise
OpenXG-RAN
Commits
a94da10d
Commit
a94da10d
authored
Oct 15, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove UE from UE_list on disconnect
parent
9125fc8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+16
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
a94da10d
...
...
@@ -1685,6 +1685,21 @@ inline void add_nr_ue_list(NR_UE_list_t *listP, int UE_id) {
*
cur
=
UE_id
;
}
/*
* Remove a UE from NR_UE_list listP
*/
inline
int
remove_nr_ue_list
(
NR_UE_list_t
*
listP
,
int
UE_id
)
{
int
*
cur
=
&
listP
->
head
;
while
(
*
cur
!=
-
1
&&
*
cur
!=
UE_id
)
cur
=
&
listP
->
next
[
*
cur
];
if
(
*
cur
==
-
1
)
return
0
;
int
*
next
=
&
listP
->
next
[
*
cur
];
*
cur
=
listP
->
next
[
*
cur
];
*
next
=
-
1
;
return
1
;
}
int
find_nr_UE_id
(
module_id_t
mod_idP
,
rnti_t
rntiP
)
//------------------------------------------------------------------------------
{
...
...
@@ -1819,6 +1834,7 @@ void mac_remove_nr_ue(module_id_t mod_id, rnti_t rnti)
UE_info
->
num_UEs
--
;
UE_info
->
active
[
UE_id
]
=
FALSE
;
UE_info
->
rnti
[
UE_id
]
=
0
;
remove_nr_ue_list
(
&
UE_info
->
list
,
UE_id
);
free
(
UE_info
->
UE_sched_ctrl
[
UE_id
].
sched_pucch
);
free
(
UE_info
->
UE_sched_ctrl
[
UE_id
].
sched_pusch
);
memset
((
void
*
)
&
UE_info
->
UE_sched_ctrl
[
UE_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