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
wangjie
OpenXG-RAN
Commits
770a8bf0
Commit
770a8bf0
authored
Nov 26, 2020
by
ChiehChun
Committed by
Robert Schmidt
Jan 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify the case of truncated BSR
parent
bab9678d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+3
-24
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
770a8bf0
...
@@ -99,7 +99,9 @@ void nr_process_mac_pdu(
...
@@ -99,7 +99,9 @@ void nr_process_mac_pdu(
case
UL_SCH_LCID_CONFIGURED_GRANT_CONFIRMATION
:
case
UL_SCH_LCID_CONFIGURED_GRANT_CONFIRMATION
:
// 38.321 Ch6.1.3.7
// 38.321 Ch6.1.3.7
break
;
break
;
case
UL_SCH_LCID_S_BSR
:
case
UL_SCH_LCID_S_BSR
:
case
UL_SCH_LCID_S_TRUNCATED_BSR
:
//38.321 section 6.1.3.1
//38.321 section 6.1.3.1
//fixed length
//fixed length
mac_ce_len
=
1
;
mac_ce_len
=
1
;
...
@@ -108,16 +110,8 @@ void nr_process_mac_pdu(
...
@@ -108,16 +110,8 @@ void nr_process_mac_pdu(
NR_BSR_SHORT
*
bsr_s
=
(
NR_BSR_SHORT
*
)
ce_ptr
;
NR_BSR_SHORT
*
bsr_s
=
(
NR_BSR_SHORT
*
)
ce_ptr
;
break
;
break
;
case
UL_SCH_LCID_S_TRUNCATED_BSR
:
//38.321 section 6.1.3.1
//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
:
case
UL_SCH_LCID_L_BSR
:
case
UL_SCH_LCID_L_TRUNCATED_BSR
:
//38.321 section 6.1.3.1
//38.321 section 6.1.3.1
//variable length
//variable length
mac_ce_len
|=
(
uint16_t
)((
NR_MAC_SUBHEADER_SHORT
*
)
pdu_ptr
)
->
L
;
mac_ce_len
|=
(
uint16_t
)((
NR_MAC_SUBHEADER_SHORT
*
)
pdu_ptr
)
->
L
;
...
@@ -131,21 +125,6 @@ void nr_process_mac_pdu(
...
@@ -131,21 +125,6 @@ void nr_process_mac_pdu(
NR_BSR_LONG
*
bsr_l
=
(
NR_BSR_LONG
*
)
ce_ptr
;
NR_BSR_LONG
*
bsr_l
=
(
NR_BSR_LONG
*
)
ce_ptr
;
break
;
break
;
case
UL_SCH_LCID_L_TRUNCATED_BSR
:
//38.321 section 6.1.3.1
//variable length
mac_ce_len
|=
(
uint16_t
)((
NR_MAC_SUBHEADER_SHORT
*
)
pdu_ptr
)
->
L
;
mac_subheader_len
=
2
;
if
(((
NR_MAC_SUBHEADER_SHORT
*
)
pdu_ptr
)
->
F
){
mac_ce_len
|=
(
uint16_t
)(((
NR_MAC_SUBHEADER_LONG
*
)
pdu_ptr
)
->
L2
)
<<
8
;
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
;
case
UL_SCH_LCID_C_RNTI
:
case
UL_SCH_LCID_C_RNTI
:
//38.321 section 6.1.3.2
//38.321 section 6.1.3.2
//fixed length
//fixed length
...
...
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