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
fd618f43
Commit
fd618f43
authored
Apr 11, 2017
by
GabrielCouturier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix eNB phy-test 20MHz DCI1
parent
38abafed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
openair1/SCHED/phy_mac_stub.c
openair1/SCHED/phy_mac_stub.c
+13
-13
No files found.
openair1/SCHED/phy_mac_stub.c
View file @
fd618f43
...
...
@@ -70,7 +70,7 @@ void fill_dci(DCI_PDU *DCI_pdu,PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
uint32_t
bcch_pdu
;
uint64_t
dlsch_pdu
;
LOG_
I
(
PHY
,
"frame %d, subframe %d, transmission_mode %d
\n
"
,
proc
->
frame_tx
,
proc
->
subframe_tx
,
transmission_mode
);
LOG_
D
(
PHY
,
"frame %d, subframe %d, transmission_mode %d
\n
"
,
proc
->
frame_tx
,
proc
->
subframe_tx
,
transmission_mode
);
DCI_pdu
->
Num_common_dci
=
0
;
DCI_pdu
->
Num_ue_spec_dci
=
0
;
...
...
@@ -380,25 +380,25 @@ void fill_dci(DCI_PDU *DCI_pdu,PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
if
(
eNB
->
frame_parms
.
frame_type
==
FDD
)
{
DCI_pdu
->
dci_alloc
[
0
].
dci_length
=
sizeof_DCI1_20MHz_FDD_t
;
((
DCI1_20MHz_FDD_t
*
)
&
dlsch_pdu
)
->
rballoc
=
rballoc
;
//computeRIV(100,10,3);
harq_pid_value
=
(
((
proc
->
frame_tx
*
10
)
+
subframe
)
%
8
);
if
(
!
(
subframe
&
1
))
// even subframe
dci_ndi_toggle_tmp
=
&
(
dci_ndi_toggle_even
[
harq_pid_value
]);
else
// odd subframe
dci_ndi_toggle_tmp
=
&
(
dci_ndi_toggle_odd
[
harq_pid_value
]);
((
DCI1_20MHz_FDD_t
*
)
&
dlsch_pdu
)
->
rballoc
=
0x1ffffff
;
//rballoc; //computeRIV(100,10,3);
((
DCI1_20MHz_FDD_t
*
)
&
dlsch_pdu
)
->
TPC
=
0
;
((
DCI1_20MHz_FDD_t
*
)
&
dlsch_pdu
)
->
harq_pid
=
subframe
%
5
;
((
DCI1_20MHz_FDD_t
*
)
&
dlsch_pdu
)
->
harq_pid
=
harq_pid_value
;
((
DCI1_20MHz_FDD_t
*
)
&
dlsch_pdu
)
->
mcs
=
eNB
->
target_ue_dl_mcs
;
//((DCI1_5MHz_FDD_t *)&dlsch_pdu)->mcs = (unsigned char) ((eNB->frame%1024)%28);
((
DCI1_20MHz_FDD_t
*
)
&
dlsch_pdu
)
->
ndi
=
subframe
/
5
;
((
DCI1_20MHz_FDD_t
*
)
&
dlsch_pdu
)
->
ndi
=
(
*
dci_ndi_toggle_tmp
);
((
DCI1_20MHz_FDD_t
*
)
&
dlsch_pdu
)
->
rv
=
0
;
((
DCI1_20MHz_FDD_t
*
)
&
dlsch_pdu
)
->
rah
=
0
;
(
*
dci_ndi_toggle_tmp
)
=
((
*
dci_ndi_toggle_tmp
)
+
1
)
&
1
;
memcpy
((
void
*
)
&
DCI_pdu
->
dci_alloc
[
0
].
dci_pdu
[
0
],(
void
*
)
&
dlsch_pdu
,
sizeof
(
DCI1_20MHz_FDD_t
));
((
DCI1_5MHz_FDD_t
*
)
&
dlsch_pdu
)
->
rballoc
=
rballoc
;
((
DCI1_5MHz_FDD_t
*
)
&
dlsch_pdu
)
->
TPC
=
0
;
((
DCI1_5MHz_FDD_t
*
)
&
dlsch_pdu
)
->
harq_pid
=
subframe
%
5
;
((
DCI1_5MHz_FDD_t
*
)
&
dlsch_pdu
)
->
mcs
=
eNB
->
target_ue_dl_mcs
;
//((DCI1_5MHz_FDD_t *)&dlsch_pdu)->mcs = (unsigned char) ((eNB->frame%1024)%28);
((
DCI1_5MHz_FDD_t
*
)
&
dlsch_pdu
)
->
ndi
=
subframe
/
5
;
((
DCI1_5MHz_FDD_t
*
)
&
dlsch_pdu
)
->
rv
=
0
;
memcpy
((
void
*
)
&
DCI_pdu
->
dci_alloc
[
0
].
dci_pdu
[
0
],(
void
*
)
&
dlsch_pdu
,
sizeof
(
DCI1_5MHz_TDD_t
));
/*
//user2
DCI_pdu->dci_alloc[1].dci_length = sizeof_DCI1_5MHz_TDD_t;
...
...
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