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
wangwenhui
OpenXG-RAN
Commits
1940750a
Commit
1940750a
authored
Nov 23, 2017
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing -r option for UE
parent
8ada5496
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
28 deletions
+28
-28
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+28
-28
No files found.
targets/RT/USER/lte-softmodem.c
View file @
1940750a
...
@@ -632,38 +632,38 @@ static void get_options(void) {
...
@@ -632,38 +632,38 @@ static void get_options(void) {
frame_parms
[
CC_id
]
->
frame_type
=
TDD
;
frame_parms
[
CC_id
]
->
frame_type
=
TDD
;
}
}
if
(
frame_parms
[
0
]
->
N_RB_DL
!=
0
)
{
if
(
n_rb_dl
!=
0
)
{
if
(
frame_parms
[
0
]
->
N_RB_DL
<
6
)
{
printf
(
"NB_RB set to %d
\n
"
,
frame_parms
[
0
]
->
N_RB_DL
);
frame_parms
[
0
]
->
N_RB_DL
=
6
;
if
(
n_rb_dl
<
6
)
{
printf
(
"%i: Invalid number of ressource blocks, adjusted to 6
\n
"
,
frame_parms
[
0
]
->
N_RB_DL
)
;
n_rb_dl
=
6
;
}
printf
(
"%i: Invalid number of ressource blocks, adjusted to 6
\n
"
,
n_rb_dl
);
if
(
frame_parms
[
0
]
->
N_RB_DL
>
100
)
{
}
frame_parms
[
0
]
->
N_RB_DL
=
100
;
if
(
n_rb_dl
>
100
)
{
printf
(
"%i: Invalid number of ressource blocks, adjusted to 100
\n
"
,
frame_parms
[
0
]
->
N_RB_DL
)
;
n_rb_dl
=
100
;
}
printf
(
"%i: Invalid number of ressource blocks, adjusted to 100
\n
"
,
n_rb_dl
);
if
(
frame_parms
[
0
]
->
N_RB_DL
>
50
&&
frame_parms
[
0
]
->
N_RB_DL
<
100
)
{
}
frame_parms
[
0
]
->
N_RB_DL
=
50
;
if
(
n_rb_dl
>
50
&&
n_rb_dl
<
100
)
{
printf
(
"%i: Invalid number of ressource blocks, adjusted to 50
\n
"
,
frame_parms
[
0
]
->
N_RB_DL
)
;
n_rb_dl
=
50
;
}
printf
(
"%i: Invalid number of ressource blocks, adjusted to 50
\n
"
,
n_rb_dl
);
if
(
frame_parms
[
0
]
->
N_RB_DL
>
25
&&
frame_parms
[
0
]
->
N_RB_DL
<
50
)
{
}
frame_parms
[
0
]
->
N_RB_DL
=
25
;
if
(
n_rb_dl
>
25
&&
n_rb_dl
<
50
)
{
printf
(
"%i: Invalid number of ressource blocks, adjusted to 25
\n
"
,
frame_parms
[
0
]
->
N_RB_DL
)
;
n_rb_dl
=
25
;
}
printf
(
"%i: Invalid number of ressource blocks, adjusted to 25
\n
"
,
n_rb_dl
);
UE_scan
=
0
;
}
frame_parms
[
0
]
->
N_RB_UL
=
frame_parms
[
0
]
->
N_RB_DL
;
UE_scan
=
0
;
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
frame_parms
[
CC_id
]
->
N_RB_DL
=
n_rb_dl
;
frame_parms
[
CC_id
]
->
N_RB_DL
=
n_rb_dl
;
frame_parms
[
CC_id
]
->
N_RB_UL
=
n_rb_dl
;
frame_parms
[
CC_id
]
->
N_RB_UL
=
n_rb_dl
;
}
}
}
}
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
for
(
CC_id
=
1
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
tx_max_power
[
CC_id
]
=
tx_max_power
[
0
];
tx_max_power
[
CC_id
]
=
tx_max_power
[
0
];
rx_gain
[
0
][
CC_id
]
=
rx_gain
[
0
][
0
];
rx_gain
[
0
][
CC_id
]
=
rx_gain
[
0
][
0
];
tx_gain
[
0
][
CC_id
]
=
tx_gain
[
0
][
0
];
tx_gain
[
0
][
CC_id
]
=
tx_gain
[
0
][
0
];
}
}
}
/* UE_flag > 0 */
}
/* UE_flag > 0 */
#if T_TRACER
#if T_TRACER
paramdef_t
cmdline_ttraceparams
[]
=
CMDLINE_TTRACEPARAMS_DESC
;
paramdef_t
cmdline_ttraceparams
[]
=
CMDLINE_TTRACEPARAMS_DESC
;
config_process_cmdline
(
cmdline_ttraceparams
,
sizeof
(
cmdline_ttraceparams
)
/
sizeof
(
paramdef_t
),
NULL
);
config_process_cmdline
(
cmdline_ttraceparams
,
sizeof
(
cmdline_ttraceparams
)
/
sizeof
(
paramdef_t
),
NULL
);
...
...
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