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
76517f47
Commit
76517f47
authored
Oct 26, 2020
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nr: mac: introduce function remove_nr_ue_list
This function is needed when an UE disconnects.
parent
97ae4300
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+17
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
76517f47
...
...
@@ -1608,6 +1608,22 @@ inline void add_nr_ue_list(NR_UE_list_t *listP, int UE_id) {
*
cur
=
UE_id
;
}
void
remove_nr_ue_list
(
NR_UE_list_t
*
listP
,
int
UE_id
)
{
int
*
prev
=
NULL
;
int
*
cur
=
&
listP
->
head
;
while
(
*
cur
!=
UE_id
)
{
AssertFatal
(
*
cur
!=
-
1
,
"UE_id %d not found in NR_UE_list!
\n
"
,
UE_id
);
prev
=
cur
;
cur
=
&
listP
->
next
[
*
cur
];
}
if
(
prev
==
NULL
)
{
listP
->
head
=
listP
->
next
[
*
cur
];
}
else
{
listP
->
next
[
*
prev
]
=
listP
->
next
[
*
cur
];
}
listP
->
next
[
*
cur
]
=
-
1
;
}
int
find_nr_UE_id
(
module_id_t
mod_idP
,
rnti_t
rntiP
)
//------------------------------------------------------------------------------
{
...
...
@@ -1741,6 +1757,7 @@ void mac_remove_nr_ue(module_id_t mod_id, rnti_t rnti)
memset
((
void
*
)
&
UE_info
->
UE_sched_ctrl
[
UE_id
],
0
,
sizeof
(
NR_UE_sched_ctrl_t
));
remove_nr_ue_list
(
&
UE_info
->
list
,
UE_id
);
LOG_I
(
MAC
,
"[gNB %d] Remove NR UE_id %d : rnti %x
\n
"
,
mod_id
,
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