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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
2a4153eb
Commit
2a4153eb
authored
Oct 07, 2020
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup previous merge with develop branch
parent
a389e6f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
23 deletions
+19
-23
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
+1
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
+2
-2
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+16
-17
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
View file @
2a4153eb
...
...
@@ -474,7 +474,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
nr_schedule_reception_msg3
(
module_idP
,
0
,
frame
,
slot
);
}
if
(
UE_
list
->
fiveG_connected
[
UE_id
])
{
if
(
UE_
info
->
active
[
UE_id
])
{
// TbD once RACH is available, start ta_timer when UE is connected
if
(
ue_sched_ctl
->
ta_timer
)
ue_sched_ctl
->
ta_timer
--
;
...
...
@@ -504,9 +504,6 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
//nr_update_pucch_scheduling(module_idP, UE_id, frame, slot, num_slots_per_tdd,&pucch_sched);
//nr_schedule_uss_dlsch_phytest(module_idP, frame, slot, &UE_info->UE_sched_ctrl[UE_id].sched_pucch[pucch_sched], NULL);
nr_schedule_ue_spec
(
module_idP
,
frame
,
slot
,
num_slots_per_tdd
);
// resetting ta flag
gNB
->
ta_len
=
0
;
// TO BE CHECKED IF IT IS CORRECT TO KEEP THIS LINE!
ue_sched_ctl
->
ta_apply
=
false
;
}
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
View file @
2a4153eb
...
...
@@ -624,8 +624,8 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
unsigned
char
sdu_lcids
[
NB_RB_MAX
]
=
{
0
};
uint16_t
sdu_lengths
[
NB_RB_MAX
]
=
{
0
};
uint16_t
rnti
=
UE_
list
->
rnti
[
UE_id
];
NR_UE_sched_ctrl_t
*
ue_sched_ctl
=
&
UE_
list
->
UE_sched_ctrl
[
UE_id
];
uint16_t
rnti
=
UE_
info
->
rnti
[
UE_id
];
NR_UE_sched_ctrl_t
*
ue_sched_ctl
=
&
UE_
info
->
UE_sched_ctrl
[
UE_id
];
uint8_t
mac_sdus
[
MAX_NR_DLSCH_PAYLOAD_BYTES
];
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
2a4153eb
...
...
@@ -1633,8 +1633,8 @@ int add_new_nr_ue(module_id_t mod_idP, rnti_t rntiP){
UE_info
->
num_UEs
);
dump_nr_ue_list
(
&
UE_info
->
list
);
for
(
i
=
0
;
i
<
MAX_MOBILES_PER_GNB
;
i
++
)
{
if
(
UE_
list
->
active
[
i
]
==
TRUE
)
for
(
i
nt
i
=
0
;
i
<
MAX_MOBILES_PER_GNB
;
i
++
)
{
if
(
UE_
info
->
active
[
i
]
)
continue
;
int
UE_id
=
i
;
...
...
@@ -1645,11 +1645,11 @@ int add_new_nr_ue(module_id_t mod_idP, rnti_t rntiP){
memset
((
void
*
)
&
UE_info
->
UE_sched_ctrl
[
UE_id
],
0
,
sizeof
(
NR_UE_sched_ctrl_t
));
UE_
list
->
UE_sched_ctrl
[
UE_id
].
ta_timer
=
100
;
UE_
list
->
UE_sched_ctrl
[
UE_id
].
ta_update
=
31
;
UE_
list
->
UE_sched_ctrl
[
UE_id
].
ul_rssi
=
0
;
UE_
list
->
UE_sched_ctrl
[
UE_id
].
sched_pucch
=
(
NR_sched_pucch
*
)
malloc
(
num_slots_ul
*
sizeof
(
NR_sched_pucch
));
UE_
list
->
UE_sched_ctrl
[
UE_id
].
sched_pusch
=
(
NR_sched_pusch
*
)
malloc
(
num_slots_ul
*
sizeof
(
NR_sched_pusch
));
UE_
info
->
UE_sched_ctrl
[
UE_id
].
ta_timer
=
100
;
UE_
info
->
UE_sched_ctrl
[
UE_id
].
ta_update
=
31
;
UE_
info
->
UE_sched_ctrl
[
UE_id
].
ul_rssi
=
0
;
UE_
info
->
UE_sched_ctrl
[
UE_id
].
sched_pucch
=
(
NR_sched_pucch
*
)
malloc
(
num_slots_ul
*
sizeof
(
NR_sched_pucch
));
UE_
info
->
UE_sched_ctrl
[
UE_id
].
sched_pusch
=
(
NR_sched_pusch
*
)
malloc
(
num_slots_ul
*
sizeof
(
NR_sched_pusch
));
for
(
int
k
=
0
;
k
<
num_slots_ul
;
k
++
)
{
memset
((
void
*
)
&
UE_info
->
UE_sched_ctrl
[
UE_id
].
sched_pucch
[
k
],
0
,
...
...
@@ -1681,23 +1681,22 @@ void mac_remove_nr_ue(module_id_t mod_id, rnti_t rnti)
{
int
UE_id
;
int
i
;
NR_UE_
list_t
*
UE_list
=
&
RC
.
nrmac
[
mod_id
]
->
UE_list
;
NR_UE_
info_t
*
UE_info
=
&
RC
.
nrmac
[
mod_id
]
->
UE_info
;
for
(
i
=
0
;
i
<
MAX_MOBILES_PER_GNB
;
i
++
)
{
if
(
UE_
list
->
active
[
i
]
!=
TRUE
)
if
(
UE_
info
->
active
[
i
]
!=
TRUE
)
continue
;
if
(
UE_
list
->
rnti
[
i
]
!=
rnti
)
if
(
UE_
info
->
rnti
[
i
]
!=
rnti
)
continue
;
/* UE found, remove it */
UE_id
=
i
;
UE_list
->
num_UEs
--
;
UE_list
->
fiveG_connected
[
UE_id
]
=
FALSE
;
UE_list
->
active
[
UE_id
]
=
FALSE
;
UE_list
->
rnti
[
UE_id
]
=
0
;
free
(
UE_list
->
UE_sched_ctrl
[
UE_id
].
sched_pucch
);
free
(
UE_list
->
UE_sched_ctrl
[
UE_id
].
sched_pusch
);
memset
((
void
*
)
&
UE_list
->
UE_sched_ctrl
[
UE_id
],
UE_info
->
num_UEs
--
;
UE_info
->
active
[
UE_id
]
=
FALSE
;
UE_info
->
rnti
[
UE_id
]
=
0
;
free
(
UE_info
->
UE_sched_ctrl
[
UE_id
].
sched_pucch
);
free
(
UE_info
->
UE_sched_ctrl
[
UE_id
].
sched_pusch
);
memset
((
void
*
)
&
UE_info
->
UE_sched_ctrl
[
UE_id
],
0
,
sizeof
(
NR_UE_sched_ctrl_t
));
LOG_I
(
MAC
,
"[gNB %d] Remove NR UE_id %d : rnti %x
\n
"
,
...
...
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