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
alex037yang
OpenXG-RAN
Commits
de7afd7d
Commit
de7afd7d
authored
Jul 05, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle uplink MAC CE
not sure about c-rnti
parent
4dd35c65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+56
-0
No files found.
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
de7afd7d
...
...
@@ -89,6 +89,11 @@ void rx_sdu(
eNB_MAC_INST
*
eNB
=
&
eNB_mac_inst
[
enb_mod_idP
];
UE_list_t
*
UE_list
=
&
eNB
->
UE_list
;
int
crnti_rx
=
0
;
#if FAPI
fapi_interface_t
*
fapi
=
eNB
->
fapi
;
struct
SchedUlMacCtrlInfoReqParameters
params
;
struct
MacCeUlListElement_s
celist
;
#endif
start_meas
(
&
eNB
->
rx_ulsch_sdu
);
...
...
@@ -123,6 +128,17 @@ void rx_sdu(
UE_list
->
UE_template
[
CC_idP
][
UE_id
].
phr_info_configured
=
1
;
}
#if FAPI
params
.
sfnSf
=
frameP
*
16
+
subframeP
;
params
.
nr_macCEUL_List
=
1
;
params
.
macCeUlList
=
&
celist
;
params
.
nr_vendorSpecificList
=
0
;
params
.
vendorSpecificList
=
NULL
;
celist
.
rnti
=
rntiP
;
celist
.
macCeType
=
ff_PHR
;
celist
.
macCeValue
.
phr
=
UE_list
->
UE_template
[
CC_idP
][
UE_id
].
phr_info
;
SchedUlMacCtrlInfoReq
(
fapi
->
sched
,
&
params
);
#endif
payload_ptr
+=
sizeof
(
POWER_HEADROOM_CMD
);
break
;
...
...
@@ -135,6 +151,17 @@ void rx_sdu(
if
(
msg3_flagP
!=
NULL
)
{
*
msg3_flagP
=
0
;
}
#if FAPI
params
.
sfnSf
=
frameP
*
16
+
subframeP
;
params
.
nr_macCEUL_List
=
1
;
params
.
macCeUlList
=
&
celist
;
params
.
nr_vendorSpecificList
=
0
;
params
.
vendorSpecificList
=
NULL
;
celist
.
rnti
=
rntiP
;
celist
.
macCeType
=
ff_CRNTI
;
celist
.
macCeValue
.
crnti
=
0
;
/* doc says it's unused */
SchedUlMacCtrlInfoReq
(
fapi
->
sched
,
&
params
);
#endif
break
;
case
TRUNCATED_BSR
:
...
...
@@ -159,6 +186,21 @@ void rx_sdu(
else
{
}
#if FAPI
params
.
sfnSf
=
frameP
*
16
+
subframeP
;
params
.
nr_macCEUL_List
=
1
;
params
.
macCeUlList
=
&
celist
;
params
.
nr_vendorSpecificList
=
0
;
params
.
vendorSpecificList
=
NULL
;
celist
.
rnti
=
rntiP
;
celist
.
macCeType
=
ff_BSR
;
celist
.
macCeValue
.
bufferStatus
[
0
]
=
64
;
celist
.
macCeValue
.
bufferStatus
[
1
]
=
64
;
celist
.
macCeValue
.
bufferStatus
[
2
]
=
64
;
celist
.
macCeValue
.
bufferStatus
[
3
]
=
64
;
celist
.
macCeValue
.
bufferStatus
[
lcgid
]
=
UE_list
->
UE_template
[
CC_idP
][
UE_id
].
bsr_info
[
lcgid
];
SchedUlMacCtrlInfoReq
(
fapi
->
sched
,
&
params
);
#endif
payload_ptr
+=
1
;
//sizeof(SHORT_BSR); // fixme
}
break
;
...
...
@@ -215,6 +257,20 @@ void rx_sdu(
}
}
#if FAPI
params
.
sfnSf
=
frameP
*
16
+
subframeP
;
params
.
nr_macCEUL_List
=
1
;
params
.
macCeUlList
=
&
celist
;
params
.
nr_vendorSpecificList
=
0
;
params
.
vendorSpecificList
=
NULL
;
celist
.
rnti
=
rntiP
;
celist
.
macCeType
=
ff_BSR
;
celist
.
macCeValue
.
bufferStatus
[
0
]
=
UE_list
->
UE_template
[
CC_idP
][
UE_id
].
bsr_info
[
LCGID0
];
celist
.
macCeValue
.
bufferStatus
[
1
]
=
UE_list
->
UE_template
[
CC_idP
][
UE_id
].
bsr_info
[
LCGID1
];
celist
.
macCeValue
.
bufferStatus
[
2
]
=
UE_list
->
UE_template
[
CC_idP
][
UE_id
].
bsr_info
[
LCGID2
];
celist
.
macCeValue
.
bufferStatus
[
3
]
=
UE_list
->
UE_template
[
CC_idP
][
UE_id
].
bsr_info
[
LCGID3
];
SchedUlMacCtrlInfoReq
(
fapi
->
sched
,
&
params
);
#endif
payload_ptr
+=
3
;
////sizeof(LONG_BSR);
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