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
zzha zzha
OpenXG-RAN
Commits
eac8f3b5
Commit
eac8f3b5
authored
Sep 18, 2023
by
Bruno Mongazon-Cazavet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit some optimization to 1 tx and 1 ue
parent
8db0e44d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
radio/rfsimulator/simulator.c
radio/rfsimulator/simulator.c
+4
-1
No files found.
radio/rfsimulator/simulator.c
View file @
eac8f3b5
...
...
@@ -137,6 +137,7 @@ static telnetshell_cmddef_t *setmodel_cmddef = &(rfsimu_cmdarray[1]);
static
telnetshell_vardef_t
rfsimu_vardef
[]
=
{{
""
,
0
,
0
,
NULL
}};
pthread_mutex_t
Sockmutex
;
unsigned
int
nb_ue
=
0
;
typedef
c16_t
sample_t
;
// 2*16 bits complex number
...
...
@@ -256,6 +257,7 @@ static void removeCirBuf(rfsimulator_state_t *bridge, int sock) {
//free(bridge->buf[sock].channel_model);
memset
(
&
bridge
->
buf
[
sock
],
0
,
sizeof
(
buffer_t
));
bridge
->
buf
[
sock
].
conn_sock
=-
1
;
nb_ue
--
;
}
static
void
socketError
(
rfsimulator_state_t
*
bridge
,
int
sock
)
{
...
...
@@ -795,6 +797,7 @@ static bool flushInput(rfsimulator_state_t *t, int timeout, int nsamps_for_initi
}
LOG_I
(
HW
,
"A client connects, sending the current time
\n
"
);
c16_t
v
=
{
0
};
nb_ue
++
;
void
*
samplesVoid
[
t
->
tx_num_channels
];
for
(
int
i
=
0
;
i
<
t
->
tx_num_channels
;
i
++
)
...
...
@@ -995,7 +998,7 @@ static int rfsimulator_read(openair0_device *device, openair0_timestamp *ptimest
}
else
{
// no channel modeling
int
nbAnt_tx
=
ptr
->
th
.
nbAnt
;
// number of Tx antennas
if
(
nbAnt_tx
==
1
)
{
// optimized for 1 Tx
if
(
(
nbAnt_tx
==
1
)
&&
((
nb_ue
==
1
)
||
(
t
->
role
==
SIMU_ROLE_CLIENT
)))
{
// optimized for 1 Tx and 1 UE
sample_t
*
out
=
(
sample_t
*
)
samplesVoid
[
a
];
int
firstIndex
=
t
->
nextRxTstamp
%
CirSize
;
sample_t
*
firstSample
=
(
sample_t
*
)
&
(
ptr
->
circularBuf
[
firstIndex
]);
...
...
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