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
54ee3b5c
Commit
54ee3b5c
authored
8 years ago
by
Clay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug where samps pointer could be overwritten in the middle of a read causing a crash.
parent
c0865be3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
openair1/PHY/LTE_TRANSPORT/initial_sync.c
openair1/PHY/LTE_TRANSPORT/initial_sync.c
+5
-1
targets/ARCH/IRIS/USERSPACE/LIB/iris_lib.cpp
targets/ARCH/IRIS/USERSPACE/LIB/iris_lib.cpp
+3
-3
No files found.
openair1/PHY/LTE_TRANSPORT/initial_sync.c
View file @
54ee3b5c
...
@@ -524,7 +524,7 @@ int initial_sync(PHY_VARS_UE *ue, runmode_t mode)
...
@@ -524,7 +524,7 @@ int initial_sync(PHY_VARS_UE *ue, runmode_t mode)
phich_string
[
ue
->
frame_parms
.
phich_config_common
.
phich_resource
],
phich_string
[
ue
->
frame_parms
.
phich_config_common
.
phich_resource
],
ue
->
frame_parms
.
nb_antenna_ports_eNB
);
ue
->
frame_parms
.
nb_antenna_ports_eNB
);
#if defined(OAI_USRP) || defined(EXMIMO) || defined(OAI_BLADERF) || defined(OAI_LMSSDR)
#if defined(OAI_USRP) || defined(EXMIMO) || defined(OAI_BLADERF) || defined(OAI_LMSSDR)
|| defined(OAI_IRIS)
LOG_I
(
PHY
,
"[UE %d] Frame %d Measured Carrier Frequency %.0f Hz (offset %d Hz)
\n
"
,
LOG_I
(
PHY
,
"[UE %d] Frame %d Measured Carrier Frequency %.0f Hz (offset %d Hz)
\n
"
,
ue
->
Mod_id
,
ue
->
Mod_id
,
ue
->
proc
.
proc_rxtx
[
0
].
frame_rx
,
ue
->
proc
.
proc_rxtx
[
0
].
frame_rx
,
...
@@ -577,23 +577,27 @@ int initial_sync(PHY_VARS_UE *ue, runmode_t mode)
...
@@ -577,23 +577,27 @@ int initial_sync(PHY_VARS_UE *ue, runmode_t mode)
LOG_I
(
PHY
,
"[UE%d] Initial sync : Estimated power: %d dB
\n
"
,
ue
->
Mod_id
,
ue
->
measurements
.
rx_power_avg_dB
[
0
]
);
LOG_I
(
PHY
,
"[UE%d] Initial sync : Estimated power: %d dB
\n
"
,
ue
->
Mod_id
,
ue
->
measurements
.
rx_power_avg_dB
[
0
]
);
#endif
#endif
#ifndef OAI_IRIS
#ifndef OAI_USRP
#ifndef OAI_USRP
#ifndef OAI_BLADERF
#ifndef OAI_BLADERF
#ifndef OAI_LMSSDR
#ifndef OAI_LMSSDR
phy_adjust_gain
(
ue
,
ue
->
measurements
.
rx_power_avg_dB
[
0
],
0
);
phy_adjust_gain
(
ue
,
ue
->
measurements
.
rx_power_avg_dB
[
0
],
0
);
#endif
#endif
#endif
#endif
#endif
#endif
#endif
}
}
else
{
else
{
#ifndef OAI_IRIS
#ifndef OAI_USRP
#ifndef OAI_USRP
#ifndef OAI_BLADERF
#ifndef OAI_BLADERF
#ifndef OAI_LMSSDR
#ifndef OAI_LMSSDR
phy_adjust_gain
(
ue
,
dB_fixed
(
ue
->
measurements
.
rssi
),
0
);
phy_adjust_gain
(
ue
,
dB_fixed
(
ue
->
measurements
.
rssi
),
0
);
#endif
#endif
#endif
#endif
#endif
#endif
#endif
}
}
...
...
This diff is collapsed.
Click to expand it.
targets/ARCH/IRIS/USERSPACE/LIB/iris_lib.cpp
View file @
54ee3b5c
...
@@ -173,9 +173,9 @@ static int trx_iris_read(openair0_device *device, openair0_timestamp *ptimestamp
...
@@ -173,9 +173,9 @@ static int trx_iris_read(openair0_device *device, openair0_timestamp *ptimestamp
long
long
timeNs
=
0
;
long
long
timeNs
=
0
;
int
flags
=
0
;
int
flags
=
0
;
int
samples_received
=
0
;
int
samples_received
=
0
;
uint32_t
*
*
samps
=
(
uint32_t
**
)
buff
;
uint32_t
*
samps
[
2
]
=
{(
uint32_t
*
)
buff
[
0
],
(
uint32_t
*
)
buff
[
1
]};
//cws: it seems another thread can clobber these, so we need to save them locally.
printf
(
"Reading %d samples from Iris...
\n
"
,
nsamps
);
//
printf("Reading %d samples from Iris...\n", nsamps);
fflush
(
stdout
);
//
fflush(stdout);
while
(
samples_received
<
nsamps
)
while
(
samples_received
<
nsamps
)
{
{
flags
=
0
;
flags
=
0
;
...
...
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