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
lizhongxiao
OpenXG-RAN
Commits
4e69a10c
Commit
4e69a10c
authored
Jun 20, 2022
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change BWP when Msg3_dcch_dtch
parent
d71658d3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+5
-13
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+15
-7
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
4e69a10c
...
...
@@ -1834,19 +1834,11 @@ void nr_generate_Msg4(module_id_t module_idP, int CC_id, frame_t frameP, sub_fra
harq
->
round
=
0
;
harq
->
ndi
^=
1
;
// Pause scheduling according to:
// 3GPP TS 38.331 Section 12 Table 12.1-1: UE performance requirements for RRC procedures for UEs
const
NR_COMMON_channels_t
*
common_channels
=
&
RC
.
nrmac
[
module_idP
]
->
common_channels
[
0
];
const
NR_SIB1_t
*
sib1
=
common_channels
->
sib1
?
common_channels
->
sib1
->
message
.
choice
.
c1
->
choice
.
systemInformationBlockType1
:
NULL
;
const
NR_ServingCellConfig_t
*
servingCellConfig
=
UE
->
CellGroup
?
UE
->
CellGroup
->
spCellConfig
->
spCellConfigDedicated
:
NULL
;
NR_BWP_t
*
genericParameters
=
get_dl_bwp_genericParameters
(
sched_ctrl
->
active_bwp
,
common_channels
->
ServingCellConfigCommon
,
sib1
);
uint32_t
delay_ms
=
servingCellConfig
&&
servingCellConfig
->
downlinkBWP_ToAddModList
?
NR_RRC_SETUP_DELAY_MS
+
NR_RRC_BWP_SWITCHING_DELAY_MS
:
NR_RRC_SETUP_DELAY_MS
;
sched_ctrl
->
rrc_processing_timer
=
(
delay_ms
<<
genericParameters
->
subcarrierSpacing
);
LOG_I
(
NR_MAC
,
"(%d.%d) Activating RRC processing timer for UE %04x with %d ms
\n
"
,
frameP
,
slotP
,
UE
->
rnti
,
delay_ms
);
configure_UE_BWP
(
nr_mac
,
scc
,
sched_ctrl
,
NULL
,
UE
);
// Reset uplink failure flags/counters/timers at MAC so gNB will resume again scheduling resources for this UE
UE
->
UE_sched_ctrl
.
pusch_consecutive_dtx_cnt
=
0
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
4e69a10c
...
...
@@ -2218,6 +2218,13 @@ void configure_UE_BWP(gNB_MAC_INST *nr_mac,
csi_MeasConfig
=
servingCellConfig
->
csi_MeasConfig
?
servingCellConfig
->
csi_MeasConfig
->
choice
.
setup
:
NULL
;
target_ss
=
NR_SearchSpace__searchSpaceType_PR_ue_Specific
;
if
(
UE
&&
UE
->
Msg3_dcch_dtch
)
{
// switching to initial BWP
DL_BWP
->
bwp_id
=
0
;
UL_BWP
->
bwp_id
=
0
;
UE
->
Msg3_dcch_dtch
=
false
;
}
else
{
// (re)configuring BWP
// TODO BWP switching not via RRC reconfiguration
// via RRC if firstActiveXlinkBWP_Id is NULL, MAC stays on the same BWP as before
...
...
@@ -2225,6 +2232,7 @@ void configure_UE_BWP(gNB_MAC_INST *nr_mac,
DL_BWP
->
bwp_id
=
*
servingCellConfig
->
firstActiveDownlinkBWP_Id
;
if
(
servingCellConfig
->
uplinkConfig
->
firstActiveUplinkBWP_Id
)
UL_BWP
->
bwp_id
=
*
servingCellConfig
->
uplinkConfig
->
firstActiveUplinkBWP_Id
;
}
const
struct
NR_ServingCellConfig__downlinkBWP_ToAddModList
*
bwpList
=
servingCellConfig
->
downlinkBWP_ToAddModList
;
if
(
bwpList
)
...
...
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