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
ffc65545
Commit
ffc65545
authored
Aug 18, 2022
by
Angelo Athanassopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NR RRC - Changed macros for active and inactive drbs
parent
68fe0ad4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
openair2/RRC/NR/rrc_gNB_drbs.c
openair2/RRC/NR/rrc_gNB_drbs.c
+2
-2
openair2/RRC/NR/rrc_gNB_drbs.h
openair2/RRC/NR/rrc_gNB_drbs.h
+3
-1
No files found.
openair2/RRC/NR/rrc_gNB_drbs.c
View file @
ffc65545
...
...
@@ -117,14 +117,14 @@ uint8_t next_available_drb(gNB_RRC_UE_t *rrc_ue, rnti_t rnti, uint8_t pdusession
uint8_t
drb_id
;
for
(
drb_id
=
0
;
drb_id
<
MAX_DRBS_PER_UE
;
drb_id
++
)
{
if
(
ue
->
used_drbs
[
drb_id
]
==
NULL_DRB
&&
ue
->
pdus
->
drbs_established
<
MAX_DRBS_PER_PDUSESSION
)
{
if
(
ue
->
used_drbs
[
drb_id
]
==
DRB_INACTIVE
&&
ue
->
pdus
->
drbs_established
<
MAX_DRBS_PER_PDUSESSION
)
{
ue
->
pdus
->
pdu_drbs
[
ue
->
pdus
->
drbs_established
]
=
drb_id
;
/* Store drb_id to pdusession */
ue
->
used_drbs
[
drb_id
]
=
pdusession_id
;
/* Store the pdusession id that is using that drb */
ue
->
pdus
->
drbs_established
++
;
/* Increment the index for drbs */
return
++
drb_id
;
}
}
return
NULL_DRB
;
return
DRB_INACTIVE
;
}
nr_ue_t
*
nr_ue_new
(
rnti_t
rnti
)
{
...
...
openair2/RRC/NR/rrc_gNB_drbs.h
View file @
ffc65545
...
...
@@ -28,7 +28,9 @@
#define MAX_DRBS_PER_UE (32)
/* Maximum number of Data Radio Bearers per UE */
#define MAX_PDUS_PER_UE (8)
/* Maximum number of PDU Sessions per UE */
#define NULL_DRB (0)
/* Non existing DRB */
#define DRB_ACTIVE (1)
#define DRB_INACTIVE (0)
typedef
struct
nr_pdus_s
{
uint8_t
pdu_drbs
[
MAX_DRBS_PER_PDUSESSION
];
/* Data Radio Bearers of PDU Session */
uint8_t
pdusession_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