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
0cba1d20
Commit
0cba1d20
authored
Oct 02, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5835
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
8bae338b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+5
-4
openair2/LAYER2/MAC/pre_processor.c
openair2/LAYER2/MAC/pre_processor.c
+1
-2
No files found.
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
0cba1d20
...
...
@@ -576,7 +576,7 @@ void schedule_ulsch_rnti(module_id_t module_idP,
eNB_MAC_INST
*
eNB
=&
eNB_mac_inst
[
module_idP
];
UE_list_t
*
UE_list
=&
eNB
->
UE_list
;
UE_TEMPLATE
*
UE_template
;
int
rvidx_tab
[
4
]
=
{
0
,
3
,
1
,
2
};
int
rvidx_tab
[
4
]
=
{
0
,
2
,
3
,
1
};
LTE_DL_FRAME_PARMS
*
frame_parms
;
LOG_I
(
MAC
,
"entering ulsch preprocesor
\n
"
);
...
...
@@ -649,8 +649,9 @@ void schedule_ulsch_rnti(module_id_t module_idP,
mcs
=
cmin
(
UE_template
->
pre_assigned_mcs_ul
,
openair_daq_vars
.
target_ue_ul_mcs
);
// adjust, based on user-defined MCS
if
(
UE_template
->
pre_allocated_rb_table_index_ul
>=
0
)
rb_table_index
=
UE_template
->
pre_allocated_rb_table_index_ul
;
else
// NN-->RK: check this condition
rb_table_index
=
1
;
// for PHR
else
{
// NN-->RK: check this condition
mcs
=
5
;
rb_table_index
=
1
;
// for PHR
}
buffer_occupancy
=
UE_template
->
ul_total_buffer
;
while
((
rb_table
[
rb_table_index
]
>
(
frame_parms
->
N_RB_UL
-
1
-
first_rb
[
CC_id
]))
&&
...
...
@@ -689,7 +690,7 @@ void schedule_ulsch_rnti(module_id_t module_idP,
LOG_I
(
MAC
,
"[eNB %d][PUSCH %d/%x] Frame %d subframeP %d Scheduled UE retransmission (mcs %d, first rb %d, nb_rb %d, TBS %d, harq_pid %d, round %d)
\n
"
,
module_idP
,
UE_id
,
rnti
,
frameP
,
subframeP
,
mcs
,
first_rb
[
CC_id
],
UE_template
->
nb_rb_ul
[
harq_pid
],
mac_xface
->
get_TBS_UL
(
mcs
,
UE_template
->
nb_rb_ul
[
harq_pid
]),
TBS
,
//
mac_xface->get_TBS_UL(mcs,UE_template->nb_rb_ul[harq_pid]),
harq_pid
,
round
);
rballoc
=
mac_xface
->
computeRIV
(
frame_parms
->
N_RB_UL
,
...
...
openair2/LAYER2/MAC/pre_processor.c
View file @
0cba1d20
...
...
@@ -940,7 +940,7 @@ void assign_max_mcs_min_rb(module_id_t module_idP,int frameP, sub_frame_t subfra
tx_power
=
mac_xface
->
estimate_ue_tx_power
(
tbs
,
rb_table
[
rb_table_index
],
0
,
frame_parms
->
Ncp
,
0
);
while
(((
UE_template
->
phr_info
-
tx_power
)
<
0
)
&&
(
mcs
>
0
)){
(
mcs
>
3
)){
// LOG_I(MAC,"UE_template->phr_info %d tx_power %d mcs %d\n", UE_template->phr_info,tx_power, mcs);
mcs
--
;
tbs
=
mac_xface
->
get_TBS_UL
(
mcs
,
rb_table
[
rb_table_index
]);
...
...
@@ -1026,4 +1026,3 @@ void sort_ue_ul (module_id_t module_idP,int frameP, sub_frame_t subframeP){
}
}
}
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