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
70a746a4
Commit
70a746a4
authored
4 months ago
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide O1 telnet interface to remove all UEs
parent
c71c9de9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
common/utils/telnetsrv/telnetsrv_o1.c
common/utils/telnetsrv/telnetsrv_o1.c
+9
-0
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
+2
-1
No files found.
common/utils/telnetsrv/telnetsrv_o1.c
View file @
70a746a4
...
...
@@ -391,12 +391,21 @@ static int start_modem(char *buf, int debug, telnet_printfunc_t prnt)
return
0
;
}
extern
void
du_clear_all_ue_states
();
static
int
remove_mac_ues
(
char
*
buf
,
int
debug
,
telnet_printfunc_t
prnt
)
{
du_clear_all_ue_states
();
prnt
(
"OK
\n
"
);
return
0
;
}
static
telnetshell_cmddef_t
o1cmds
[]
=
{
{
"stats"
,
""
,
get_stats
},
{
"config"
,
"[]"
,
set_config
},
{
"bwconfig"
,
""
,
set_bwconfig
},
{
"stop_modem"
,
""
,
stop_modem
},
{
"start_modem"
,
""
,
start_modem
},
{
"remove_mac_ues"
,
""
,
remove_mac_ues
},
{
""
,
""
,
NULL
},
};
...
...
This diff is collapsed.
Click to expand it.
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
View file @
70a746a4
...
...
@@ -99,7 +99,8 @@ static bool check_plmn_identity(const f1ap_plmn_t *check_plmn, const f1ap_plmn_t
return
plmn
->
mcc
==
check_plmn
->
mcc
&&
plmn
->
mnc_digit_length
==
check_plmn
->
mnc_digit_length
&&
plmn
->
mnc
==
check_plmn
->
mnc
;
}
static
void
du_clear_all_ue_states
()
/* not static, so we can call it from the outside (in telnet) */
void
du_clear_all_ue_states
()
{
gNB_MAC_INST
*
mac
=
RC
.
nrmac
[
0
];
NR_SCHED_LOCK
(
&
mac
->
sched_lock
);
...
...
This diff is collapsed.
Click to expand it.
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