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
e196f5fc
Commit
e196f5fc
authored
Mar 21, 2016
by
Xiwen JIANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed in beamforming.c
parent
06c4b91b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
openair1/PHY/MODULATION/beamforming.c
openair1/PHY/MODULATION/beamforming.c
+6
-3
No files found.
openair1/PHY/MODULATION/beamforming.c
View file @
e196f5fc
...
...
@@ -61,7 +61,7 @@ int ue_spec_beamforming(int32_t **txdataF,
slot_offset_F
=
slot
*
(
frame_parms
->
ofdm_symbol_size
)
*
((
frame_parms
->
Ncp
==
1
)
?
6
:
7
);
// clear txdata_BF[aa][re] for each call of
spec
_spec_beamforming
// clear txdata_BF[aa][re] for each call of
ue
_spec_beamforming
for
(
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_tx
;
aa
++
)
memset
(
txdataF_BF
[
aa
],
0
,
4
*
(
frame_parms
->
ofdm_symbol_size
));
...
...
@@ -89,7 +89,7 @@ int ue_spec_beamforming(int32_t **txdataF,
}
}
if
(
txdataF
[
7
][
re
+
symbol
*
frame_parms
->
ofdm_symbol_siz
e
]
!=
0
)
{
//that means this RE is actually using TM8-10
if
(
txdataF
[
7
][
slot_offset_F
+
symbol
*
frame_parms
->
ofdm_symbol_size
+
r
e
]
!=
0
)
{
//that means this RE is actually using TM8-10
for
(
p
=
0
;
p
<
8
;
p
++
)
{
if
(
txdataF
[
p
+
7
][
slot_offset_F
+
symbol
*
frame_parms
->
ofdm_symbol_size
+
re
]
!=
0
)
{
//that means this RE is actually allocated
for
(
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_tx
;
aa
++
)
{
...
...
@@ -130,7 +130,6 @@ int cell_spec_beamforming(int32_t **txdataF,
for
(
p
=
0
;
p
<
frame_parms
->
nb_antenna_ports_eNB
;
p
++
)
{
if
(
txdataF
[
p
][
slot_offset_F
+
symbol
*
frame_parms
->
ofdm_symbol_size
+
re
]
!=
0
)
{
//that means this RE is actually allocated
for
(
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_tx
;
aa
++
)
{
//printf("cell_spec_beamforming():txdata_BF[%d][%d]=%d+j%d\n",aa,re,((int16_t*)&txdataF_BF[aa][re])[0],((int16_t*)&txdataF_BF[aa][re])[1]);
((
int16_t
*
)
&
txdataF_BF
[
aa
][
re
])[
0
]
=
(
int16_t
)((((
int16_t
*
)
&
txdataF
[
p
][
slot_offset_F
+
symbol
*
frame_parms
->
ofdm_symbol_size
+
re
])[
0
]
*
((
int16_t
*
)
&
cell_spec_bf_weights
[
p
][
aa
][
re
])[
0
])
>>
15
);
...
...
@@ -154,6 +153,10 @@ int cell_spec_beamforming(int32_t **txdataF,
}
}
}
/*
int ue_spec_beamforming(int32_t **txdataF,
int32_t **txdataF_BF,
...
...
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