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
spbro
OpenXG-RAN
Commits
6b3529b2
Commit
6b3529b2
authored
Aug 30, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/small-fixes-rfsim' into integration_2024_w35
parents
af9f422a
532aa1a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
radio/rfsimulator/simulator.c
radio/rfsimulator/simulator.c
+11
-2
No files found.
radio/rfsimulator/simulator.c
View file @
6b3529b2
...
...
@@ -182,6 +182,8 @@ typedef struct {
static
int
allocCirBuf
(
rfsimulator_state_t
*
bridge
,
int
sock
)
{
/* TODO: cleanup code so that this AssertFatal becomes useless */
AssertFatal
(
sock
>=
0
&&
sock
<
sizeofArray
(
bridge
->
buf
),
"socket %d is not in range
\n
"
,
sock
);
buffer_t
*
ptr
=&
bridge
->
buf
[
sock
];
ptr
->
circularBuf
=
calloc
(
1
,
sampleToByte
(
CirSize
,
1
));
if
(
ptr
->
circularBuf
==
NULL
)
{
...
...
@@ -302,7 +304,12 @@ static void fullwrite(int fd, void *_buf, ssize_t count, rfsimulator_state_t *t)
while
(
count
)
{
l
=
write
(
fd
,
buf
,
count
);
if
(
l
<=
0
)
{
if
(
l
==
0
)
{
LOG_E
(
HW
,
"write() failed, returned 0
\n
"
);
return
;
}
if
(
l
<
0
)
{
if
(
errno
==
EINTR
)
continue
;
...
...
@@ -310,8 +317,10 @@ static void fullwrite(int fd, void *_buf, ssize_t count, rfsimulator_state_t *t)
LOG_D
(
HW
,
"write() failed, errno(%d)
\n
"
,
errno
);
usleep
(
250
);
continue
;
}
else
}
else
{
LOG_E
(
HW
,
"write() failed, errno(%d)
\n
"
,
errno
);
return
;
}
}
count
-=
l
;
...
...
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