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
bff1f063
Commit
bff1f063
authored
Apr 20, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing MAC reset cause from reset_ra
parent
8a3c329e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+3
-3
openair2/LAYER2/NR_MAC_UE/mac_proto.h
openair2/LAYER2/NR_MAC_UE/mac_proto.h
+1
-1
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
+2
-2
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
bff1f063
...
...
@@ -1426,7 +1426,7 @@ void nr_rrc_mac_config_req_reset(module_id_t module_id,
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
module_id
);
switch
(
cause
)
{
case
GO_TO_IDLE
:
reset_ra
(
mac
,
caus
e
);
reset_ra
(
mac
,
tru
e
);
release_mac_configuration
(
mac
,
cause
);
nr_ue_init_mac
(
mac
);
nr_ue_mac_default_configs
(
mac
);
...
...
@@ -1435,14 +1435,14 @@ void nr_rrc_mac_config_req_reset(module_id_t module_id,
break
;
case
DETACH
:
LOG_A
(
NR_MAC
,
"Received detach indication
\n
"
);
reset_ra
(
mac
,
caus
e
);
reset_ra
(
mac
,
tru
e
);
reset_mac_inst
(
mac
);
nr_ue_reset_sync_state
(
mac
);
release_mac_configuration
(
mac
,
cause
);
mac
->
state
=
UE_DETACHING
;
break
;
case
T300_EXPIRY
:
reset_ra
(
mac
,
cau
se
);
reset_ra
(
mac
,
fal
se
);
reset_mac_inst
(
mac
);
mac
->
state
=
UE_SYNC
;
// still in sync but need to restart RA
break
;
...
...
openair2/LAYER2/NR_MAC_UE/mac_proto.h
View file @
bff1f063
...
...
@@ -100,7 +100,7 @@ NR_UE_MAC_INST_t * nr_l2_init_ue(int nb_inst);
NR_UE_MAC_INST_t
*
get_mac_inst
(
module_id_t
module_id
);
void
reset_mac_inst
(
NR_UE_MAC_INST_t
*
nr_mac
);
void
reset_ra
(
NR_UE_MAC_INST_t
*
nr_mac
,
NR_UE_MAC_reset_cause_t
cause
);
void
reset_ra
(
NR_UE_MAC_INST_t
*
nr_mac
,
bool
free_prach
);
void
release_mac_configuration
(
NR_UE_MAC_INST_t
*
mac
,
NR_UE_MAC_reset_cause_t
cause
);
...
...
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
View file @
bff1f063
...
...
@@ -299,14 +299,14 @@ void free_rach_structures(NR_UE_MAC_INST_t *nr_mac, int bwp_id)
free
(
nr_mac
->
ssb_list
[
bwp_id
].
tx_ssb
);
}
void
reset_ra
(
NR_UE_MAC_INST_t
*
nr_mac
,
NR_UE_MAC_reset_cause_t
cause
)
void
reset_ra
(
NR_UE_MAC_INST_t
*
nr_mac
,
bool
free_prach
)
{
RA_config_t
*
ra
=
&
nr_mac
->
ra
;
if
(
ra
->
rach_ConfigDedicated
)
asn1cFreeStruc
(
asn_DEF_NR_RACH_ConfigDedicated
,
ra
->
rach_ConfigDedicated
);
memset
(
ra
,
0
,
sizeof
(
RA_config_t
));
if
(
cause
==
T300_EXPIRY
)
if
(
!
free_prach
)
return
;
for
(
int
i
=
0
;
i
<
MAX_NUM_BWP_UE
;
i
++
)
...
...
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