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
6eed836f
Commit
6eed836f
authored
Oct 03, 2017
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: fix frame/subframe
parent
d31ad04c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
openair2/LAYER2/MAC/eNB_scheduler_RA.c
openair2/LAYER2/MAC/eNB_scheduler_RA.c
+3
-3
openair2/PHY_INTERFACE/IF_Module.c
openair2/PHY_INTERFACE/IF_Module.c
+2
-2
No files found.
openair2/LAYER2/MAC/eNB_scheduler_RA.c
View file @
6eed836f
...
...
@@ -370,7 +370,7 @@ void generate_Msg2(module_id_t module_idP,int CC_idP,frame_t frameP,sub_frame_t
add_msg3
(
module_idP
,
CC_idP
,
RA_template
,
frameP
,
subframeP
);
fill_rar_br
(
eNB
,
CC_idP
,
RA_template
,
frameP
,
subframeP
,
cc
[
CC_idP
].
RAR_pdu
.
payload
,
RA_template
->
rach_resource_type
-
1
);
// DL request
eNB
->
TX_req
[
CC_idP
].
sfn_sf
=
(
frameP
<<
3
)
+
subframeP
;
eNB
->
TX_req
[
CC_idP
].
sfn_sf
=
(
frameP
<<
4
)
+
subframeP
;
TX_req
=
&
eNB
->
TX_req
[
CC_idP
].
tx_request_body
.
tx_pdu_list
[
eNB
->
TX_req
[
CC_idP
].
tx_request_body
.
number_of_pdus
];
TX_req
->
pdu_length
=
7
;
// This should be changed if we have more than 1 preamble
TX_req
->
pdu_index
=
eNB
->
pdu_index
[
CC_idP
]
++
;
...
...
@@ -464,7 +464,7 @@ void generate_Msg2(module_id_t module_idP,int CC_idP,frame_t frameP,sub_frame_t
add_msg3
(
module_idP
,
CC_idP
,
RA_template
,
frameP
,
subframeP
);
// DL request
eNB
->
TX_req
[
CC_idP
].
sfn_sf
=
(
frameP
<<
3
)
+
subframeP
;
eNB
->
TX_req
[
CC_idP
].
sfn_sf
=
(
frameP
<<
4
)
+
subframeP
;
TX_req
=
&
eNB
->
TX_req
[
CC_idP
].
tx_request_body
.
tx_pdu_list
[
eNB
->
TX_req
[
CC_idP
].
tx_request_body
.
number_of_pdus
];
TX_req
->
pdu_length
=
7
;
// This should be changed if we have more than 1 preamble
TX_req
->
pdu_index
=
eNB
->
pdu_index
[
CC_idP
]
++
;
...
...
@@ -758,7 +758,7 @@ void generate_Msg4(module_id_t module_idP,int CC_idP,frame_t frameP,sub_frame_t
rrc_sdu_length
);
// DL request
eNB
->
TX_req
[
CC_idP
].
sfn_sf
=
(
frameP
<<
3
)
+
subframeP
;
eNB
->
TX_req
[
CC_idP
].
sfn_sf
=
(
frameP
<<
4
)
+
subframeP
;
TX_req
=
&
eNB
->
TX_req
[
CC_idP
].
tx_request_body
.
tx_pdu_list
[
eNB
->
TX_req
[
CC_idP
].
tx_request_body
.
number_of_pdus
];
TX_req
->
pdu_length
=
rrc_sdu_length
;
TX_req
->
pdu_index
=
eNB
->
pdu_index
[
CC_idP
]
++
;
...
...
openair2/PHY_INTERFACE/IF_Module.c
View file @
6eed836f
...
...
@@ -193,14 +193,14 @@ void UL_indication(UL_IND_t *UL_info)
if
(
ifi
->
CC_mask
==
((
1
<<
MAX_NUM_CCs
)
-
1
))
{
eNB_dlsch_ulsch_scheduler
(
module_id
,
UL_info
->
frame
+
((
UL_info
->
subframe
>
5
)
?
1
:
0
)
,
(
UL_info
->
frame
+
((
UL_info
->
subframe
>
5
)
?
1
:
0
))
%
1024
,
(
UL_info
->
subframe
+
4
)
%
10
);
ifi
->
CC_mask
=
0
;
sched_info
->
module_id
=
module_id
;
sched_info
->
CC_id
=
CC_id
;
sched_info
->
frame
=
UL_info
->
frame
+
((
UL_info
->
subframe
>
5
)
?
1
:
0
)
;
sched_info
->
frame
=
(
UL_info
->
frame
+
((
UL_info
->
subframe
>
5
)
?
1
:
0
))
%
1024
;
sched_info
->
subframe
=
(
UL_info
->
subframe
+
4
)
%
10
;
sched_info
->
DL_req
=
&
mac
->
DL_req
[
CC_id
];
sched_info
->
HI_DCI0_req
=
&
mac
->
HI_DCI0_req
[
CC_id
];
...
...
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