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
zzha zzha
OpenXG-RAN
Commits
d647a98f
Commit
d647a98f
authored
May 30, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the gNB_ue_ngap_id greater than 0
To avoid 0 in the ID
parent
50bba6b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
openair2/RRC/NR/rrc_gNB_UE_context.c
openair2/RRC/NR/rrc_gNB_UE_context.c
+2
-2
No files found.
openair2/RRC/NR/rrc_gNB_UE_context.c
View file @
d647a98f
...
@@ -66,7 +66,7 @@ rrc_gNB_ue_context_t *rrc_gNB_allocate_new_ue_context(gNB_RRC_INST *rrc_instance
...
@@ -66,7 +66,7 @@ rrc_gNB_ue_context_t *rrc_gNB_allocate_new_ue_context(gNB_RRC_INST *rrc_instance
LOG_E
(
NR_RRC
,
"Cannot allocate new ue context
\n
"
);
LOG_E
(
NR_RRC
,
"Cannot allocate new ue context
\n
"
);
return
NULL
;
return
NULL
;
}
}
new_p
->
ue_context
.
gNB_ue_ngap_id
=
uid_linear_allocator_new
(
&
rrc_instance_pP
->
uid_allocator
);
new_p
->
ue_context
.
gNB_ue_ngap_id
=
uid_linear_allocator_new
(
&
rrc_instance_pP
->
uid_allocator
)
+
1
;
for
(
int
i
=
0
;
i
<
NB_RB_MAX
;
i
++
)
for
(
int
i
=
0
;
i
<
NB_RB_MAX
;
i
++
)
new_p
->
ue_context
.
pduSession
[
i
].
xid
=
-
1
;
new_p
->
ue_context
.
pduSession
[
i
].
xid
=
-
1
;
...
@@ -120,7 +120,7 @@ void rrc_gNB_remove_ue_context(gNB_RRC_INST *rrc_instance_pP, rrc_gNB_ue_context
...
@@ -120,7 +120,7 @@ void rrc_gNB_remove_ue_context(gNB_RRC_INST *rrc_instance_pP, rrc_gNB_ue_context
}
}
RB_REMOVE
(
rrc_nr_ue_tree_s
,
&
rrc_instance_pP
->
rrc_ue_head
,
ue_context_pP
);
RB_REMOVE
(
rrc_nr_ue_tree_s
,
&
rrc_instance_pP
->
rrc_ue_head
,
ue_context_pP
);
uid_linear_allocator_free
(
&
rrc_instance_pP
->
uid_allocator
,
ue_context_pP
->
ue_context
.
gNB_ue_ngap_id
);
uid_linear_allocator_free
(
&
rrc_instance_pP
->
uid_allocator
,
ue_context_pP
->
ue_context
.
gNB_ue_ngap_id
-
1
);
rrc_gNB_free_mem_ue_context
(
ue_context_pP
);
rrc_gNB_free_mem_ue_context
(
ue_context_pP
);
LOG_I
(
NR_RRC
,
"Removed UE context
\n
"
);
LOG_I
(
NR_RRC
,
"Removed UE context
\n
"
);
}
}
...
...
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