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
canghaiwuhen
OpenXG-RAN
Commits
a2f28902
Commit
a2f28902
authored
Nov 12, 2020
by
kn.raju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved errors on multi user
parent
0d27bbe2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+5
-6
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+20
-19
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
a2f28902
...
@@ -874,11 +874,11 @@ void nr_generate_Msg2(module_id_t module_idP,
...
@@ -874,11 +874,11 @@ void nr_generate_Msg2(module_id_t module_idP,
nr_configure_dci
(
nr_mac
,
nr_configure_dci
(
nr_mac
,
pdcch_pdu_rel15
,
pdcch_pdu_rel15
,
RA_rnti
,
RA_rnti
,
ss
,
ss
,
coreset
,
coreset
,
scc
,
scc
,
bwp
,
bwp
,
ra
->
beam_id
,
ra
->
beam_id
,
aggregation_level
,
aggregation_level
,
CCEIndex
);
CCEIndex
);
...
@@ -944,7 +944,6 @@ void nr_generate_Msg2(module_id_t module_idP,
...
@@ -944,7 +944,6 @@ void nr_generate_Msg2(module_id_t module_idP,
pdcch_pdu_rel15
->
numDlDci
++
;
pdcch_pdu_rel15
->
numDlDci
++
;
}
}
}
}
}
fill_dci_pdu_rel15
(
scc
,
ra
->
secondaryCellGroup
,
pdcch_pdu_rel15
,
dci_pdu_rel15
,
dci_formats
,
rnti_types
,
dci10_bw
,
ra
->
bwp_id
);
fill_dci_pdu_rel15
(
scc
,
ra
->
secondaryCellGroup
,
pdcch_pdu_rel15
,
dci_pdu_rel15
,
dci_formats
,
rnti_types
,
dci10_bw
,
ra
->
bwp_id
);
}
}
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
a2f28902
...
@@ -128,25 +128,26 @@ static inline uint8_t get_max_cces(uint8_t scs) {
...
@@ -128,25 +128,26 @@ static inline uint8_t get_max_cces(uint8_t scs) {
NR_ControlResourceSet_t
*
get_coreset
(
NR_BWP_Downlink_t
*
bwp
,
NR_ControlResourceSet_t
*
get_coreset
(
NR_BWP_Downlink_t
*
bwp
,
NR_SearchSpace_t
*
ss
,
NR_SearchSpace_t
*
ss
,
int
ss_type
)
{
int
ss_type
)
{
NR_ControlResourceSetId_t
coreset_id
=
*
ss
->
controlResourceSetId
;
NR_ControlResourceSetId_t
coreset_id
=
*
ss
->
controlResourceSetId
;
if
(
ss_type
==
0
)
{
// common search space
if
(
ss_type
==
0
)
{
// common search space
AssertFatal
(
coreset_id
!=
0
,
"coreset0 currently not supported
\n
"
);
AssertFatal
(
coreset_id
!=
0
,
"coreset0 currently not supported
\n
"
);
NR_ControlResourceSet_t
*
coreset
=
bwp
->
bwp_Common
->
pdcch_ConfigCommon
->
choice
.
setup
->
commonControlResourceSet
;
NR_ControlResourceSet_t
*
coreset
=
bwp
->
bwp_Common
->
pdcch_ConfigCommon
->
choice
.
setup
->
commonControlResourceSet
;
AssertFatal
(
coreset_id
==
coreset
->
controlResourceSetId
,
AssertFatal
(
coreset_id
==
coreset
->
controlResourceSetId
,
"ID of common ss coreset does not correspond to id set in the "
"ID of common ss coreset does not correspond to id set in the "
"search space
\n
"
);
"search space
\n
"
);
return
coreset
;
return
coreset
;
}
else
{
}
else
{
const
int
n
=
bwp
->
bwp_Dedicated
->
pdcch_Config
->
choice
.
setup
->
controlResourceSetToAddModList
->
list
.
count
;
const
int
n
=
bwp
->
bwp_Dedicated
->
pdcch_Config
->
choice
.
setup
->
controlResourceSetToAddModList
->
list
.
count
;
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
NR_ControlResourceSet_t
*
coreset
=
bwp
->
bwp_Dedicated
->
pdcch_Config
->
choice
.
setup
->
controlResourceSetToAddModList
->
list
.
array
[
i
];
NR_ControlResourceSet_t
*
coreset
=
if
(
coreset_id
==
coreset
->
controlResourceSetId
)
{
bwp
->
bwp_Dedicated
->
pdcch_Config
->
choice
.
setup
->
controlResourceSetToAddModList
->
list
.
array
[
i
];
return
coreset
;
if
(
coreset_id
==
coreset
->
controlResourceSetId
)
{
}
return
coreset
;
}
}
AssertFatal
(
0
,
"Couldn't find coreset with id %ld
\n
"
,
coreset_id
);
}
}
AssertFatal
(
0
,
"Couldn't find coreset with id %ld
\n
"
,
coreset_id
);
}
}
}
NR_SearchSpace_t
*
get_searchspace
(
NR_SearchSpace_t
*
get_searchspace
(
...
@@ -481,7 +482,7 @@ void nr_fill_nfapi_dl_pdu(int Mod_idP,
...
@@ -481,7 +482,7 @@ void nr_fill_nfapi_dl_pdu(int Mod_idP,
gNB_MAC_INST
*
nr_mac
=
RC
.
nrmac
[
Mod_idP
];
gNB_MAC_INST
*
nr_mac
=
RC
.
nrmac
[
Mod_idP
];
NR_COMMON_channels_t
*
cc
=
nr_mac
->
common_channels
;
NR_COMMON_channels_t
*
cc
=
nr_mac
->
common_channels
;
NR_ServingCellConfigCommon_t
*
scc
=
cc
->
ServingCellConfigCommon
;
NR_ServingCellConfigCommon_t
*
scc
=
cc
->
ServingCellConfigCommon
;
const
int
bwp_id
=
sched_ctrl
->
active_bwp
->
bwp_Id
;
const
int
bwp_id
=
sched_ctrl
->
active_bwp
->
bwp_Id
;
const
int
nrOfLayers
=
1
;
const
int
nrOfLayers
=
1
;
const
int
mcs
=
sched_ctrl
->
mcs
;
const
int
mcs
=
sched_ctrl
->
mcs
;
...
...
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