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
lizhongxiao
OpenXG-RAN
Commits
5693f7ba
Commit
5693f7ba
authored
Dec 25, 2019
by
oai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix memory segmentation error
parent
72e60992
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+5
-2
No files found.
targets/RT/USER/lte-softmodem.c
View file @
5693f7ba
...
...
@@ -122,7 +122,7 @@ int UE_scan_carrier = 0;
runmode_t
mode
=
normal_txrx
;
FILE
*
input_fd
=
NULL
;
static
char
UE_flag
=
0
;
static
char
UE_flag
=
1
;
#if MAX_NUM_CCs == 1
rx_gain_t
rx_gain_mode
[
MAX_NUM_CCs
][
4
]
=
{{
max_gain
,
max_gain
,
max_gain
,
max_gain
}};
...
...
@@ -635,9 +635,12 @@ int main( int argc, char **argv ) {
}
// init the parameters
if
(
UE_flag
==
1
)
{
if
(
UE_flag
==
1
)
{
//samuel : i don't know what need to set this flag?
//#ifdef NB_IOT /////////////// for NB-IoT testing ///////////////////////////
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
frame_parms_NB_IoT
[
CC_id
]
=
(
NB_IoT_DL_FRAME_PARMS
*
)
malloc
(
sizeof
(
NB_IoT_DL_FRAME_PARMS
));
}
frame_parms_NB_IoT
[
0
]
->
nb_antennas_tx
=
nb_antenna_tx
;
frame_parms_NB_IoT
[
0
]
->
nb_antennas_rx
=
nb_antenna_rx
;
frame_parms_NB_IoT
[
0
]
->
nb_antenna_ports_eNB
=
1
;
//initial value overwritten by initial sync later
...
...
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