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
4a04aeb2
Commit
4a04aeb2
authored
9 years ago
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in decoding frame and subframe number from sfn_sf field
parent
08783ca6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
openair2/LAYER2/MAC/eNB_agent_scheduler_dlsch_ue_remote.c
openair2/LAYER2/MAC/eNB_agent_scheduler_dlsch_ue_remote.c
+5
-5
No files found.
openair2/LAYER2/MAC/eNB_agent_scheduler_dlsch_ue_remote.c
View file @
4a04aeb2
...
...
@@ -109,17 +109,17 @@ int get_sf_difference(mid_t mod_id, uint16_t sfn_sf) {
return
0
;
}
uint16_t
frame_mask
=
!
((
1
<<
4
)
-
1
);
uint16_t
frame
=
(
sfn_sf
&
frame_mask
)
>>
4
;
uint16_t
frame_mask
=
((
1
<<
12
)
-
1
);
uint16_t
frame
=
(
sfn_sf
&
(
frame_mask
<<
4
)
)
>>
4
;
uint16_t
sf_mask
=
!
(((
1
<<
12
)
-
1
)
<<
4
);
uint16_t
sf_mask
=
((
1
<<
4
)
-
1
);
uint16_t
subframe
=
(
sfn_sf
&
sf_mask
);
if
(
frame
==
current_frame
)
{
return
subframe
-
current_subframe
;
}
else
if
(
frame
>
current_frame
)
{
diff_in_subframes
=
9
-
current_subframe
;
diff_in_subframes
+=
subframe
;
diff_in_subframes
+=
(
subframe
+
1
)
;
diff_in_subframes
+=
(
frame
-
2
)
*
10
;
if
(
diff_in_subframes
>
SCHED_AHEAD_SUBFRAMES
)
{
return
-
1
;
...
...
@@ -128,7 +128,7 @@ int get_sf_difference(mid_t mod_id, uint16_t sfn_sf) {
}
}
else
{
//frame < current_frame
diff_in_subframes
=
9
-
current_subframe
;
diff_in_subframes
+=
subframe
;
diff_in_subframes
+=
(
subframe
+
1
)
;
if
(
frame
>
0
)
{
diff_in_subframes
+=
(
frame
-
1
)
*
10
;
}
...
...
This diff is collapsed.
Click to expand it.
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