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
wangjie
OpenXG-RAN
Commits
887c8acd
Commit
887c8acd
authored
Mar 18, 2020
by
masayuki.harada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix initial TA with MIMO-L1
parent
eedd7591
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
openair2/LAYER2/MAC/rar_tools.c
openair2/LAYER2/MAC/rar_tools.c
+2
-1
No files found.
openair2/LAYER2/MAC/rar_tools.c
View file @
887c8acd
...
@@ -68,8 +68,9 @@ fill_rar(const module_id_t module_idP,
...
@@ -68,8 +68,9 @@ fill_rar(const module_id_t module_idP,
rar
[
4
]
=
(
uint8_t
)
(
ra
->
rnti
>>
8
);
rar
[
4
]
=
(
uint8_t
)
(
ra
->
rnti
>>
8
);
rar
[
5
]
=
(
uint8_t
)
(
ra
->
rnti
&
0xff
);
rar
[
5
]
=
(
uint8_t
)
(
ra
->
rnti
&
0xff
);
//ra->timing_offset = 0;
//ra->timing_offset = 0;
#ifndef PHY_RM
ra
->
timing_offset
/=
16
;
//T_A = N_TA/16, where N_TA should be on a 30.72Msps
ra
->
timing_offset
/=
16
;
//T_A = N_TA/16, where N_TA should be on a 30.72Msps
// ra->timing_offset /= 16; //T_A = N_TA/16, where N_TA should be on a 30.72Msps
#endif
// rar[0] = (uint8_t) (ra->timing_offset >> (2 + 4)); // 7 MSBs of timing advance + divide by 4
// rar[0] = (uint8_t) (ra->timing_offset >> (2 + 4)); // 7 MSBs of timing advance + divide by 4
// rar[1] = (uint8_t) (ra->timing_offset << (4 - 2)) & 0xf0; // 4 LSBs of timing advance + divide by 4
// rar[1] = (uint8_t) (ra->timing_offset << (4 - 2)) & 0xf0; // 4 LSBs of timing advance + divide by 4
rar
[
0
]
=
(
uint8_t
)
(
ra
->
timing_offset
>>
4
);
// 7 MSBs of timing advance
rar
[
0
]
=
(
uint8_t
)
(
ra
->
timing_offset
>>
4
);
// 7 MSBs of timing advance
...
...
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