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
wangjie
OpenXG-RAN
Commits
7236e3ca
Commit
7236e3ca
authored
Apr 06, 2016
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfixes to improve stability
parent
46b1280a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
openair2/ENB_APP/enb_agent_common.c
openair2/ENB_APP/enb_agent_common.c
+22
-3
No files found.
openair2/ENB_APP/enb_agent_common.c
View file @
7236e3ca
...
...
@@ -561,7 +561,6 @@ int get_ue_phr (mid_t mod_id, mid_t ue_id) {
}
int
get_ue_wcqi
(
mid_t
mod_id
,
mid_t
ue_id
)
{
return
((
UE_list_t
*
)
enb_ue
[
mod_id
])
->
eNB_UE_stats
[
UE_PCCID
(
mod_id
,
ue_id
)][
ue_id
].
dl_cqi
;
}
int
get_tx_queue_size
(
mid_t
mod_id
,
mid_t
ue_id
,
logical_chan_id_t
channel_id
)
...
...
@@ -576,6 +575,10 @@ int get_MAC_CE_bitmap_TA(mid_t mod_id, mid_t ue_id,int CC_id)
{
rnti_t
rnti
=
get_ue_crnti
(
mod_id
,
ue_id
);
LTE_eNB_UE_stats
*
eNB_UE_stats
=
mac_xface
->
get_eNB_UE_stats
(
mod_id
,
CC_id
,
rnti
);
if
(
eNB_UE_stats
==
NULL
)
{
return
0
;
}
int32_t
time_advance
;
switch
(
PHY_vars_eNB_g
[
mod_id
][
CC_id
]
->
lte_frame_parms
.
N_RB_DL
)
{
...
...
@@ -622,6 +625,11 @@ int get_current_RI(mid_t mod_id, mid_t ue_id, int CC_id)
rnti_t
rnti
=
get_ue_crnti
(
mod_id
,
ue_id
);
eNB_UE_stats
=
mac_xface
->
get_eNB_UE_stats
(
mod_id
,
CC_id
,
rnti
);
if
(
eNB_UE_stats
==
NULL
)
{
return
0
;
}
return
eNB_UE_stats
[
CC_id
].
rank
;
}
...
...
@@ -636,10 +644,16 @@ int get_tpc(mid_t mod_id, mid_t ue_id)
eNB_UE_stats
=
mac_xface
->
get_eNB_UE_stats
(
mod_id
,
pCCid
,
rnti
);
normalized_rx_power
=
eNB_UE_stats
->
UL_rssi
[
0
];
target_rx_power
=
mac_xface
->
get_target_pusch_rx_power
(
mod_id
,
pCCid
);
if
(
eNB_UE_stats
==
NULL
)
{
normalized_rx_power
=
target_rx_power
;
}
else
if
(
eNB_UE_stats
->
UL_rssi
!=
NULL
)
{
normalized_rx_power
=
eNB_UE_stats
->
UL_rssi
[
0
];
}
else
{
normalized_rx_power
=
target_rx_power
;
}
if
(
normalized_rx_power
>
(
target_rx_power
+
1
))
{
tpc
=
0
;
//-1
}
else
if
(
normalized_rx_power
<
(
target_rx_power
-
1
))
{
...
...
@@ -680,6 +694,11 @@ int get_p0_pucch_dbm(mid_t mod_id, mid_t ue_id, int CC_id)
uint32_t
rnti
=
get_ue_crnti
(
mod_id
,
ue_id
);
eNB_UE_stats
=
mac_xface
->
get_eNB_UE_stats
(
mod_id
,
CC_id
,
rnti
);
if
(
eNB_UE_stats
==
NULL
)
{
return
-
1
;
}
if
(
eNB_UE_stats
->
Po_PUCCH_update
==
1
)
{
return
eNB_UE_stats
->
Po_PUCCH_dBm
;
...
...
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