Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
09ea970b
Commit
09ea970b
authored
2 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Stop UE with ^C
parent
77e61425
No related branches found
No related tags found
2 merge requests
!2037
integration_2023_w13
,
!2008
Draft: Implement NR-UE Deregistration procedure
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
executables/nr-uesoftmodem.c
+17
-4
17 additions, 4 deletions
executables/nr-uesoftmodem.c
with
17 additions
and
4 deletions
executables/nr-uesoftmodem.c
+
17
−
4
View file @
09ea970b
...
@@ -426,7 +426,7 @@ int main( int argc, char **argv ) {
...
@@ -426,7 +426,7 @@ int main( int argc, char **argv ) {
if
(
load_configmodule
(
argc
,
argv
,
CONFIG_ENABLECMDLINEONLY
)
==
NULL
)
{
if
(
load_configmodule
(
argc
,
argv
,
CONFIG_ENABLECMDLINEONLY
)
==
NULL
)
{
exit_fun
(
"[SOFTMODEM] Error, configuration module init failed
\n
"
);
exit_fun
(
"[SOFTMODEM] Error, configuration module init failed
\n
"
);
}
}
set_softmodem_sighandler
();
//
set_softmodem_sighandler();
CONFIG_SETRTFLAG
(
CONFIG_NOEXITONHELP
);
CONFIG_SETRTFLAG
(
CONFIG_NOEXITONHELP
);
memset
(
openair0_cfg
,
0
,
sizeof
(
openair0_config_t
)
*
MAX_CARDS
);
memset
(
openair0_cfg
,
0
,
sizeof
(
openair0_config_t
)
*
MAX_CARDS
);
memset
(
tx_max_power
,
0
,
sizeof
(
int
)
*
MAX_NUM_CCs
);
memset
(
tx_max_power
,
0
,
sizeof
(
int
)
*
MAX_NUM_CCs
);
...
@@ -550,15 +550,28 @@ int main( int argc, char **argv ) {
...
@@ -550,15 +550,28 @@ int main( int argc, char **argv ) {
// Sleep a while before checking all parameters have been used
// Sleep a while before checking all parameters have been used
// Some are used directly in external threads, asynchronously
// Some are used directly in external threads, asynchronously
sleep
(
2
0
);
sleep
(
2
);
config_check_unknown_cmdlineopt
(
CONFIG_CHECKALLSECTIONS
);
config_check_unknown_cmdlineopt
(
CONFIG_CHECKALLSECTIONS
);
while
(
true
)
// wait for end of program
sleep
(
3600
);
printf
(
"Entering ITTI signals handler
\n
"
);
printf
(
"TYPE <CTRL-C> TO TERMINATE
\n
"
);
itti_wait_tasks_end
();
printf
(
"Returned from ITTI signal handler
\n
"
);
oai_exit
=
1
;
printf
(
"oai_exit=%d
\n
"
,
oai_exit
);
if
(
ouput_vcd
)
if
(
ouput_vcd
)
vcd_signal_dumper_close
();
vcd_signal_dumper_close
();
if
(
PHY_vars_UE_g
&&
PHY_vars_UE_g
[
0
])
{
for
(
int
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
PHY_VARS_NR_UE
*
phy_vars
=
PHY_vars_UE_g
[
0
][
CC_id
];
if
(
phy_vars
&&
phy_vars
->
rfdevice
.
trx_end_func
)
phy_vars
->
rfdevice
.
trx_end_func
(
&
phy_vars
->
rfdevice
);
}
}
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment