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
zzha zzha
OpenXG-RAN
Commits
7efad13f
Commit
7efad13f
authored
Dec 18, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6280
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
cccc99f5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
16 deletions
+24
-16
openair2/LAYER2/MAC/eNB_scheduler.c
openair2/LAYER2/MAC/eNB_scheduler.c
+2
-2
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+2
-2
openair2/LAYER2/MAC/proto.h
openair2/LAYER2/MAC/proto.h
+1
-1
openair2/RRC/LITE/proto.h
openair2/RRC/LITE/proto.h
+1
-1
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+18
-10
No files found.
openair2/LAYER2/MAC/eNB_scheduler.c
View file @
7efad13f
...
@@ -112,7 +112,7 @@ void eNB_dlsch_ulsch_scheduler(module_id_t module_idP,uint8_t cooperation_flag,
...
@@ -112,7 +112,7 @@ void eNB_dlsch_ulsch_scheduler(module_id_t module_idP,uint8_t cooperation_flag,
for
(
i
=
UE_list
->
head
;
i
>
0
;
i
=
UE_list
->
next
[
i
])
{
for
(
i
=
UE_list
->
head
;
i
>
0
;
i
=
UE_list
->
next
[
i
])
{
LOG_I
(
MAC
,
"UE %d: rnti %x (%p)
\n
"
,
i
,
UE_RNTI
(
module_idP
,
i
),
mac_xface
->
get_eNB_UE_stats
(
module_idP
,
0
,
UE_RNTI
(
module_idP
,
i
)));
LOG_I
(
MAC
,
"UE %d: rnti %x (%p)
\n
"
,
i
,
UE_RNTI
(
module_idP
,
i
),
mac_xface
->
get_eNB_UE_stats
(
module_idP
,
0
,
UE_RNTI
(
module_idP
,
i
)));
if
(
mac_xface
->
get_eNB_UE_stats
(
module_idP
,
0
,
UE_RNTI
(
module_idP
,
i
))
==
NULL
)
if
(
mac_xface
->
get_eNB_UE_stats
(
module_idP
,
0
,
UE_RNTI
(
module_idP
,
i
))
==
NULL
)
mac_remove_ue
(
module_idP
,
i
);
mac_remove_ue
(
module_idP
,
i
,
frameP
);
}
}
#if defined(ENABLE_ITTI)
#if defined(ENABLE_ITTI)
do
{
do
{
...
@@ -206,7 +206,7 @@ void eNB_dlsch_ulsch_scheduler(module_id_t module_idP,uint8_t cooperation_flag,
...
@@ -206,7 +206,7 @@ void eNB_dlsch_ulsch_scheduler(module_id_t module_idP,uint8_t cooperation_flag,
next_i
=
UE_list
->
next
[
i
];
next_i
=
UE_list
->
next
[
i
];
LOG_D
(
MAC
,
"UE %d : rnti %x, stats %p
\n
"
,
i
,
UE_RNTI
(
module_idP
,
i
),
mac_xface
->
get_eNB_UE_stats
(
module_idP
,
0
,
UE_RNTI
(
module_idP
,
i
)));
LOG_D
(
MAC
,
"UE %d : rnti %x, stats %p
\n
"
,
i
,
UE_RNTI
(
module_idP
,
i
),
mac_xface
->
get_eNB_UE_stats
(
module_idP
,
0
,
UE_RNTI
(
module_idP
,
i
)));
if
(
mac_xface
->
get_eNB_UE_stats
(
module_idP
,
0
,
UE_RNTI
(
module_idP
,
i
))
==
NULL
)
{
if
(
mac_xface
->
get_eNB_UE_stats
(
module_idP
,
0
,
UE_RNTI
(
module_idP
,
i
))
==
NULL
)
{
mac_remove_ue
(
module_idP
,
i
);
mac_remove_ue
(
module_idP
,
i
,
frameP
);
}
}
i
=
next_i
;
i
=
next_i
;
}
}
...
...
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
7efad13f
...
@@ -249,7 +249,7 @@ int add_new_ue(module_id_t mod_idP, int cc_idP, rnti_t rntiP,int harq_pidP) {
...
@@ -249,7 +249,7 @@ int add_new_ue(module_id_t mod_idP, int cc_idP, rnti_t rntiP,int harq_pidP) {
return
(
-
1
);
return
(
-
1
);
}
}
int
mac_remove_ue
(
module_id_t
mod_idP
,
int
ue_idP
)
{
int
mac_remove_ue
(
module_id_t
mod_idP
,
int
ue_idP
,
int
frameP
)
{
int
prev
,
i
,
ret
=-
1
;
int
prev
,
i
,
ret
=-
1
;
...
@@ -273,7 +273,7 @@ int mac_remove_ue(module_id_t mod_idP, int ue_idP) {
...
@@ -273,7 +273,7 @@ int mac_remove_ue(module_id_t mod_idP, int ue_idP) {
eNB_dlsch_info
[
mod_idP
][
pCC_id
][
ue_idP
].
rnti
=
0
;
eNB_dlsch_info
[
mod_idP
][
pCC_id
][
ue_idP
].
rnti
=
0
;
eNB_dlsch_info
[
mod_idP
][
pCC_id
][
ue_idP
].
status
=
S_DL_NONE
;
eNB_dlsch_info
[
mod_idP
][
pCC_id
][
ue_idP
].
status
=
S_DL_NONE
;
rrc_eNB_free_UE_index
(
mod_idP
,
ue_idP
);
rrc_eNB_free_UE_index
(
mod_idP
,
ue_idP
,
frameP
);
prev
=
UE_list
->
head
;
prev
=
UE_list
->
head
;
for
(
i
=
UE_list
->
head
;
i
>=
0
;
i
=
UE_list
->
next
[
i
])
{
for
(
i
=
UE_list
->
head
;
i
>=
0
;
i
=
UE_list
->
next
[
i
])
{
...
...
openair2/LAYER2/MAC/proto.h
View file @
7efad13f
...
@@ -472,7 +472,7 @@ uint8_t *parse_ulsch_header(uint8_t *mac_header,
...
@@ -472,7 +472,7 @@ uint8_t *parse_ulsch_header(uint8_t *mac_header,
int
l2_init
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int
eMBMS_active
,
uint8_t
cba_group_active
,
uint8_t
HO_active
);
int
l2_init
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int
eMBMS_active
,
uint8_t
cba_group_active
,
uint8_t
HO_active
);
int
mac_init
(
void
);
int
mac_init
(
void
);
int
add_new_ue
(
module_id_t
Mod_id
,
int
CC_id
,
rnti_t
rnti
,
int
harq_pid
);
int
add_new_ue
(
module_id_t
Mod_id
,
int
CC_id
,
rnti_t
rnti
,
int
harq_pid
);
int
mac_remove_ue
(
module_id_t
Mod_id
,
int
UE_id
);
int
mac_remove_ue
(
module_id_t
Mod_id
,
int
UE_id
,
int
frameP
);
int
maxround
(
module_id_t
Mod_id
,
uint16_t
rnti
,
int
frame
,
sub_frame_t
subframe
,
uint8_t
ul_flag
);
int
maxround
(
module_id_t
Mod_id
,
uint16_t
rnti
,
int
frame
,
sub_frame_t
subframe
,
uint8_t
ul_flag
);
...
...
openair2/RRC/LITE/proto.h
View file @
7efad13f
...
@@ -263,7 +263,7 @@ uint8_t check_trigger_meas_event(uint8_t module_idP,frame_t frameP, uint8_t eNB_
...
@@ -263,7 +263,7 @@ uint8_t check_trigger_meas_event(uint8_t module_idP,frame_t frameP, uint8_t eNB_
//void rrc_ue_process_ueCapabilityEnquiry(uint8_t module_idP,uint32_t frame,UECapabilityEnquiry_t *UECapabilityEnquiry,uint8_t eNB_index);
//void rrc_ue_process_ueCapabilityEnquiry(uint8_t module_idP,uint32_t frame,UECapabilityEnquiry_t *UECapabilityEnquiry,uint8_t eNB_index);
//void rrc_ue_process_securityModeCommand(uint8_t module_idP,uint32_t frame,SecurityModeCommand_t *securityModeCommand,uint8_t eNB_index);
//void rrc_ue_process_securityModeCommand(uint8_t module_idP,uint32_t frame,SecurityModeCommand_t *securityModeCommand,uint8_t eNB_index);
void
rrc_eNB_free_UE_index
(
module_id_t
enb_mod_idP
,
module_id_t
ue_mod_idP
);
void
rrc_eNB_free_UE_index
(
module_id_t
enb_mod_idP
,
module_id_t
ue_mod_idP
,
int
frameP
);
long
binary_search_int
(
int
elements
[],
long
numElem
,
int
value
);
long
binary_search_int
(
int
elements
[],
long
numElem
,
int
value
);
...
...
openair2/RRC/LITE/rrc_eNB.c
View file @
7efad13f
...
@@ -528,7 +528,12 @@ static module_id_t rrc_eNB_get_next_free_UE_index(
...
@@ -528,7 +528,12 @@ static module_id_t rrc_eNB_get_next_free_UE_index(
void
rrc_eNB_free_UE_index
(
void
rrc_eNB_free_UE_index
(
module_id_t
enb_mod_idP
,
module_id_t
enb_mod_idP
,
module_id_t
ue_mod_idP
)
{
module_id_t
ue_mod_idP
,
int
frameP
)
{
DRB_ToAddModList_t
*
DRB_configList
=
eNB_rrc_inst
[
enb_mod_idP
].
DRB_configList
[
ue_mod_idP
];
SRB_ToAddModList_t
*
SRB_configList
=
eNB_rrc_inst
[
enb_mod_idP
].
SRB_configList
[
ue_mod_idP
];
AssertFatal
(
enb_mod_idP
<
NB_eNB_INST
,
"eNB inst invalid (%d/%d) for UE %d!"
,
enb_mod_idP
,
NB_eNB_INST
,
ue_mod_idP
);
AssertFatal
(
enb_mod_idP
<
NB_eNB_INST
,
"eNB inst invalid (%d/%d) for UE %d!"
,
enb_mod_idP
,
NB_eNB_INST
,
ue_mod_idP
);
AssertFatal
(
ue_mod_idP
<
NUMBER_OF_UE_MAX
,
"UE inst invalid (%d/%d) for eNB %d!"
,
ue_mod_idP
,
NUMBER_OF_UE_MAX
,
AssertFatal
(
ue_mod_idP
<
NUMBER_OF_UE_MAX
,
"UE inst invalid (%d/%d) for eNB %d!"
,
ue_mod_idP
,
NUMBER_OF_UE_MAX
,
enb_mod_idP
);
enb_mod_idP
);
...
@@ -537,6 +542,9 @@ void rrc_eNB_free_UE_index(
...
@@ -537,6 +542,9 @@ void rrc_eNB_free_UE_index(
eNB_rrc_inst
[
enb_mod_idP
].
Info
.
UE_list
[
ue_mod_idP
]);
eNB_rrc_inst
[
enb_mod_idP
].
Info
.
UE_list
[
ue_mod_idP
]);
eNB_rrc_inst
[
enb_mod_idP
].
Info
.
UE
[
ue_mod_idP
].
Status
=
RRC_IDLE
;
eNB_rrc_inst
[
enb_mod_idP
].
Info
.
UE
[
ue_mod_idP
].
Status
=
RRC_IDLE
;
eNB_rrc_inst
[
enb_mod_idP
].
Info
.
UE_list
[
ue_mod_idP
]
=
0
;
eNB_rrc_inst
[
enb_mod_idP
].
Info
.
UE_list
[
ue_mod_idP
]
=
0
;
rrc_rlc_remove_rlc
(
enb_mod_idP
,
ue_mod_idP
,
frameP
,
ENB_FLAG_YES
,
SRB_FLAG_YES
,
MBMS_FLAG_NO
,
CONFIG_ACTION_REMOVE
,
1
);
free
(
eNB_rrc_inst
[
enb_mod_idP
].
SRB_configList
[
ue_mod_idP
]);
free
(
eNB_rrc_inst
[
enb_mod_idP
].
SRB_configList
[
ue_mod_idP
]);
}
}
...
...
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