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
promise
OpenXG-RAN
Commits
f84568e1
Commit
f84568e1
authored
9 years ago
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix when checking for the LCG of an LC
parent
fffb682f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
openair2/ENB_APP/enb_agent_common.c
openair2/ENB_APP/enb_agent_common.c
+6
-4
No files found.
openair2/ENB_APP/enb_agent_common.c
View file @
f84568e1
...
@@ -1053,8 +1053,7 @@ int get_lcg(mid_t ue_id, mid_t lc_id)
...
@@ -1053,8 +1053,7 @@ int get_lcg(mid_t ue_id, mid_t lc_id)
int
get_direction
(
mid_t
ue_id
,
mid_t
lc_id
)
int
get_direction
(
mid_t
ue_id
,
mid_t
lc_id
)
{
{
/*TODO: fill with the value for the rest of LCID*/
/*TODO: fill with the value for the rest of LCID*/
if
(
lc_id
==
DCCH
|
lc_id
==
DCCH1
)
if
(
lc_id
==
CCCH
|
lc_id
==
DCCH
)
return
2
;
return
2
;
else
if
(
lc_id
==
DTCH
)
else
if
(
lc_id
==
DTCH
)
return
1
;
return
1
;
...
@@ -1124,8 +1123,11 @@ int enb_agent_lc_config_reply(mid_t mod_id, const void *params, Protocol__Progra
...
@@ -1124,8 +1123,11 @@ int enb_agent_lc_config_reply(mid_t mod_id, const void *params, Protocol__Progra
lc_config
[
j
]
->
has_lcid
=
1
;
lc_config
[
j
]
->
has_lcid
=
1
;
lc_config
[
j
]
->
lcid
=
j
+
1
;
lc_config
[
j
]
->
lcid
=
j
+
1
;
//TODO: Set the LCG of the channel
//TODO: Set the LCG of the channel
int
lcg
=
get_lcg
(
i
,
j
+
1
);
if
(
lcg
>=
0
&&
lcg
<=
3
)
{
lc_config
[
j
]
->
has_lcg
=
1
;
lc_config
[
j
]
->
has_lcg
=
1
;
lc_config
[
j
]
->
lcg
=
get_lcg
(
i
,
j
+
1
);
lc_config
[
j
]
->
lcg
=
get_lcg
(
i
,
j
+
1
);
}
//TODO: Set the LC direction
//TODO: Set the LC direction
lc_config
[
j
]
->
has_direction
=
1
;
lc_config
[
j
]
->
has_direction
=
1
;
lc_config
[
j
]
->
direction
=
get_direction
(
i
,
j
+
1
);
lc_config
[
j
]
->
direction
=
get_direction
(
i
,
j
+
1
);
...
...
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