Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
074306c2
Commit
074306c2
authored
Nov 24, 2016
by
S. Sandeep Kumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix conflicting prach size in if4p5
parent
53275f11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
openair1/PHY/LTE_TRANSPORT/if4_tools.c
openair1/PHY/LTE_TRANSPORT/if4_tools.c
+7
-6
No files found.
openair1/PHY/LTE_TRANSPORT/if4_tools.c
View file @
074306c2
...
...
@@ -150,7 +150,8 @@ void send_IF4p5(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type
}
else
if
(
packet_type
==
IF4p5_PRACH
)
{
// FIX: hard coded prach samples length
LOG_D
(
PHY
,
"IF4p5_PRACH: frame %d, subframe %d
\n
"
,
frame
,
subframe
);
db_fulllength
=
PRACH_HARD_CODED_SIZE
;
db_fulllength
=
PRACH_HARD_CODED_NUM_SAMPLES
;
if
(
eth
->
flags
==
ETH_RAW_IF4p5_MODE
)
{
packet_header
=
(
IF4p5_header_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
);
data_block
=
(
uint16_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4p5_header_t
);
...
...
@@ -163,11 +164,11 @@ void send_IF4p5(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type
if
(
eth
->
flags
==
ETH_RAW_IF4p5_MODE
)
{
memcpy
((
int16_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4p5_header_t
),
(
&
rxsigF
[
0
][
k
]),
db_fulllength
*
sizeof
(
int16_t
)
);
PRACH_BLOCK_SIZE_BYTES
);
}
else
{
memcpy
((
int16_t
*
)(
tx_buffer
+
sizeof_IF4p5_header_t
),
(
&
rxsigF
[
0
][
k
]),
db_fulllength
*
sizeof
(
int16_t
)
);
PRACH_BLOCK_SIZE_BYTES
);
}
if
((
eNB
->
ifdevice
.
trx_write_func
(
&
eNB
->
ifdevice
,
...
...
@@ -273,16 +274,16 @@ void recv_IF4p5(PHY_VARS_eNB *eNB, int *frame, int *subframe, uint16_t *packet_t
}
else
if
(
*
packet_type
==
IF4p5_PRACH
)
{
// FIX: hard coded prach samples length
db_fulllength
=
840
*
2
;
db_fulllength
=
PRACH_HARD_CODED_NUM_SAMPLES
;
if
(
eth
->
flags
==
ETH_RAW_IF4p5_MODE
)
{
memcpy
((
&
rxsigF
[
0
][
0
]),
(
int16_t
*
)
(
rx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4p5_header_t
),
db_fulllength
*
sizeof
(
int16_t
)
);
PRACH_BLOCK_SIZE_BYTES
);
}
else
{
memcpy
((
&
rxsigF
[
0
][
0
]),
(
int16_t
*
)
(
rx_buffer
+
sizeof_IF4p5_header_t
),
db_fulllength
*
sizeof
(
int16_t
)
);
PRACH_BLOCK_SIZE_BYTES
);
}
}
else
{
...
...
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