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
Michael Black
OpenXG-RAN
Commits
b7e5c9cf
Commit
b7e5c9cf
authored
Aug 25, 2021
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update logic for calling scheduler
parent
9b6b905b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
executables/nr-ue.c
executables/nr-ue.c
+1
-0
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
+3
-2
No files found.
executables/nr-ue.c
View file @
b7e5c9cf
...
@@ -285,6 +285,7 @@ static void *NRUE_phy_stub_standalone_pnf_task(void *arg)
...
@@ -285,6 +285,7 @@ static void *NRUE_phy_stub_standalone_pnf_task(void *arg)
ul_info
.
slot_rx
=
slot
;
ul_info
.
slot_rx
=
slot
;
ul_info
.
slot_tx
=
(
slot
+
slot_ahead
)
%
slots_per_frame
;
ul_info
.
slot_tx
=
(
slot
+
slot_ahead
)
%
slots_per_frame
;
ul_info
.
frame_tx
=
(
ul_info
.
slot_rx
+
slot_ahead
>=
slots_per_frame
)
?
ul_info
.
frame_rx
+
1
:
ul_info
.
frame_rx
;
ul_info
.
frame_tx
=
(
ul_info
.
slot_rx
+
slot_ahead
>=
slots_per_frame
)
?
ul_info
.
frame_rx
+
1
:
ul_info
.
frame_rx
;
ul_info
.
ue_sched_mode
=
SCHED_ALL
;
memset
(
&
mac
->
dl_info
,
0
,
sizeof
(
mac
->
dl_info
));
memset
(
&
mac
->
dl_info
,
0
,
sizeof
(
mac
->
dl_info
));
mac
->
dl_info
.
cc_id
=
CC_id
;
mac
->
dl_info
.
cc_id
=
CC_id
;
...
...
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
View file @
b7e5c9cf
...
@@ -514,6 +514,7 @@ static void check_and_process_dci(nfapi_nr_dl_tti_request_t *dl_tti_request,
...
@@ -514,6 +514,7 @@ static void check_and_process_dci(nfapi_nr_dl_tti_request_t *dl_tti_request,
ul_info
.
slot_rx
=
slot
;
ul_info
.
slot_rx
=
slot
;
ul_info
.
slot_tx
=
(
slot
+
slot_ahead
)
%
slots_per_frame
;
ul_info
.
slot_tx
=
(
slot
+
slot_ahead
)
%
slots_per_frame
;
ul_info
.
frame_tx
=
(
ul_info
.
slot_rx
+
slot_ahead
>=
slots_per_frame
)
?
ul_info
.
frame_rx
+
1
:
ul_info
.
frame_rx
;
ul_info
.
frame_tx
=
(
ul_info
.
slot_rx
+
slot_ahead
>=
slots_per_frame
)
?
ul_info
.
frame_rx
+
1
:
ul_info
.
frame_rx
;
ul_info
.
ue_sched_mode
=
SCHED_ALL
;
if
(
mac
->
scc
&&
is_nr_UL_slot
(
mac
->
scc
->
tdd_UL_DL_ConfigurationCommon
,
ul_info
.
slot_tx
,
mac
->
frame_type
))
if
(
mac
->
scc
&&
is_nr_UL_slot
(
mac
->
scc
->
tdd_UL_DL_ConfigurationCommon
,
ul_info
.
slot_tx
,
mac
->
frame_type
))
{
{
nr_ue_ul_indication
(
&
ul_info
);
nr_ue_ul_indication
(
&
ul_info
);
...
@@ -768,11 +769,11 @@ int nr_ue_ul_indication(nr_uplink_indication_t *ul_info){
...
@@ -768,11 +769,11 @@ int nr_ue_ul_indication(nr_uplink_indication_t *ul_info){
module_id_t
module_id
=
ul_info
->
module_id
;
module_id_t
module_id
=
ul_info
->
module_id
;
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
module_id
);
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
module_id
);
if
(
ul_info
->
ue_sched_mode
==
ONLY_PUSCH
&&
!
get_softmodem_params
()
->
nsa
)
{
if
(
ul_info
->
ue_sched_mode
==
ONLY_PUSCH
)
{
ret
=
nr_ue_scheduler
(
NULL
,
ul_info
);
ret
=
nr_ue_scheduler
(
NULL
,
ul_info
);
return
0
;
return
0
;
}
}
if
(
ul_info
->
ue_sched_mode
==
SCHED_ALL
||
(
mac
->
ra
.
ra_state
>=
GENERATE_PREAMBLE
&&
mac
->
ra
.
ra_state
!=
RA_FAILED
)
)
{
if
(
ul_info
->
ue_sched_mode
==
SCHED_ALL
)
{
ret
=
nr_ue_scheduler
(
NULL
,
ul_info
);
ret
=
nr_ue_scheduler
(
NULL
,
ul_info
);
}
}
else
else
...
...
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