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
Michael Black
OpenXG-RAN
Commits
1ff770ff
Commit
1ff770ff
authored
Nov 25, 2020
by
ChiehChun
Committed by
Robert Schmidt
Feb 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CE & BSR pointer
parent
2b6a651a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+10
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
1ff770ff
...
...
@@ -84,6 +84,8 @@ void nr_process_mac_pdu(
LOG_D
(
MAC
,
"LCID received at gNB side: %d
\n
"
,
rx_lcid
);
unsigned
char
*
ce_ptr
;
switch
(
rx_lcid
){
// MAC CE
...
...
@@ -102,6 +104,8 @@ void nr_process_mac_pdu(
//fixed length
mac_ce_len
=
1
;
/* Extract short BSR value */
ce_ptr
=
&
pdu_ptr
[
mac_subheader_len
];
NR_BSR_SHORT
*
bsr_s
=
(
NR_BSR_SHORT
*
)
ce_ptr
;
break
;
case
UL_SCH_LCID_S_TRUNCATED_BSR
:
...
...
@@ -109,6 +113,8 @@ void nr_process_mac_pdu(
//fixed length
mac_ce_len
=
1
;
/* Extract short truncated BSR value */
ce_ptr
=
&
pdu_ptr
[
mac_subheader_len
];
NR_BSR_SHORT_TRUNCATED
*
bsr_st
=
(
NR_BSR_SHORT_TRUNCATED
*
)
ce_ptr
;
break
;
case
UL_SCH_LCID_L_BSR
:
...
...
@@ -121,6 +127,8 @@ void nr_process_mac_pdu(
mac_subheader_len
=
3
;
}
/* Extract long BSR value */
ce_ptr
=
&
pdu_ptr
[
mac_subheader_len
];
NR_BSR_LONG
*
bsr_l
=
(
NR_BSR_LONG
*
)
ce_ptr
;
break
;
case
UL_SCH_LCID_L_TRUNCATED_BSR
:
...
...
@@ -133,6 +141,8 @@ void nr_process_mac_pdu(
mac_subheader_len
=
3
;
}
/* Extract long truncated BSR value */
ce_ptr
=
&
pdu_ptr
[
mac_subheader_len
];
NR_BSR_LONG_TRUNCATED
*
bsr_lt
=
(
NR_BSR_LONG_TRUNCATED
*
)
ce_ptr
;
break
;
...
...
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