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
常顺宇
OpenXG-RAN
Commits
1846c56d
Commit
1846c56d
authored
Apr 04, 2018
by
jftt_wangshanshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the missing part of DAI setting and harq_pid calculation to OAI SCD
parent
6d21972e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+3
-2
openair2/LAYER2/MAC/pre_processor.c
openair2/LAYER2/MAC/pre_processor.c
+1
-4
No files found.
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
1846c56d
...
...
@@ -1489,6 +1489,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
cqi_req
;
hi_dci0_pdu
->
dci_pdu
.
dci_pdu_rel8
.
dl_assignment_index
=
UE_template
->
DAI_ul
[
sched_subframeP
];
hi_dci0_pdu
->
dci_pdu
.
dci_pdu_rel8
.
harq_pid
=
harq_pid
;
hi_dci0_req_body
->
number_of_dci
++
;
hi_dci0_req_body
->
sfnsf
=
sfnsf_add_subframe
(
sched_frame
,
sched_subframeP
,
0
);
//(frameP, subframeP, 4)
...
...
@@ -1554,7 +1555,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
uint16_t
ul_sched_frame
=
sched_frame
;
uint16_t
ul_sched_subframeP
=
sched_subframeP
;
add_subframe
(
&
ul_sched_frame
,
&
ul_sched_subframeP
,
2
);
//
add_subframe(&ul_sched_frame, &ul_sched_subframeP, 2);
ul_req_tmp
->
sfn_sf
=
ul_sched_frame
<<
4
|
ul_sched_subframeP
;
add_ue_ulsch_info
(
module_idP
,
...
...
@@ -1641,7 +1642,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
ul_req_tmp_body
->
ul_config_pdu_list
[
ul_req_index
].
pdu_type
=
NFAPI_UL_CONFIG_ULSCH_HARQ_PDU_TYPE
;
ul_req_tmp_body
->
ul_config_pdu_list
[
ul_req_index
].
ulsch_harq_pdu
.
initial_transmission_parameters
.
initial_transmission_parameters_rel8
.
tl
.
tag
=
NFAPI_UL_CONFIG_REQUEST_INITIAL_TRANSMISSION_PARAMETERS_REL8_TAG
;
ul_req_tmp_body
->
ul_config_pdu_list
[
ul_req_index
].
ulsch_harq_pdu
.
initial_transmission_parameters
.
initial_transmission_parameters_rel8
.
n_srs_initial
=
0
;
// last symbol not punctured
ul_req_tmp_body
->
ul_config_pdu_list
[
ul_req_index
].
ulsch_harq_pdu
.
initial_transmission_parameters
.
initial_transmission_parameters_rel8
.
initial_number_of_resource_blocks
=
rb_table
[
rb_table_index
];
ul_req_tmp_body
->
ul_config_pdu_list
[
ul_req_index
].
ulsch_harq_pdu
.
initial_transmission_parameters
.
initial_transmission_parameters_rel8
.
initial_number_of_resource_blocks
=
UE_template
->
nb_rb_ul
[
harq_pid
];
fill_nfapi_ulsch_harq_information
(
module_idP
,
CC_id
,
rnti
,
&
ul_req_tmp_body
->
ul_config_pdu_list
[
ul_req_index
].
ulsch_harq_pdu
.
harq_information
,
subframeP
);
}
else
{
ul_req_tmp_body
->
number_of_pdus
++
;
...
...
openair2/LAYER2/MAC/pre_processor.c
View file @
1846c56d
...
...
@@ -1182,10 +1182,7 @@ void dlsch_scheduler_pre_processor (module_id_t Mod_id,
CC_id
=
UE_list
->
ordered_CCids
[
ii
][
UE_id
];
ue_sched_ctl
=
&
UE_list
->
UE_sched_ctrl
[
UE_id
];
cc
=
&
RC
.
mac
[
Mod_id
]
->
common_channels
[
ii
];
if
(
cc
->
tdd_Config
)
harq_pid
=
((
frameP
*
10
)
+
subframeP
)
%
10
;
else
harq_pid
=
((
frameP
*
10
)
+
subframeP
)
&
7
;
harq_pid
=
frame_subframe2_dl_harq_pid
(
cc
->
tdd_Config
,
frameP
,
subframeP
);
round
=
ue_sched_ctl
->
round
[
CC_id
][
harq_pid
];
average_rbs_per_user
[
CC_id
]
=
0
;
...
...
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