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
5c3c374c
Commit
5c3c374c
authored
Oct 20, 2025
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add implementation to trigger BWP switch from external source
parent
805c968b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
openair2/LAYER2/NR_MAC_gNB/config.c
openair2/LAYER2/NR_MAC_gNB/config.c
+18
-0
openair2/LAYER2/NR_MAC_gNB/mac_config.h
openair2/LAYER2/NR_MAC_gNB/mac_config.h
+2
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/config.c
View file @
5c3c374c
...
...
@@ -1065,6 +1065,24 @@ bool nr_update_sib19(const gnb_sat_position_update_t *sat_position)
return
true
;
}
bool
nr_trigger_bwp_switch
(
uint16_t
rnti
,
int
bwp_id
)
{
gNB_MAC_INST
*
nrmac
=
RC
.
nrmac
[
0
];
NR_SCHED_LOCK
(
&
nrmac
->
sched_lock
);
NR_UE_info_t
*
UE
=
find_nr_UE
(
&
nrmac
->
UE_info
,
rnti
);
bool
success
=
false
;
if
(
!
UE
)
{
LOG_W
(
NR_MAC
,
"could not find UE for RNTI %04x
\n
"
,
rnti
);
}
else
if
(
UE
->
current_DL_BWP
.
bwp_id
==
bwp_id
)
{
LOG_W
(
NR_MAC
,
"UE %04x is already on BWP ID %d, not triggering reconfiguration
\n
"
,
rnti
,
bwp_id
);
}
else
{
// UE != NULL && current_DL_BWP.bwp_id != bwp_id
nr_mac_trigger_reconfiguration
(
nrmac
,
UE
,
bwp_id
);
success
=
true
;
}
NR_SCHED_UNLOCK
(
&
nrmac
->
sched_lock
);
return
success
;
}
void
prepare_du_configuration_update
(
gNB_MAC_INST
*
mac
,
f1ap_served_cell_info_t
*
info
,
NR_BCCH_BCH_Message_t
*
mib
,
...
...
openair2/LAYER2/NR_MAC_gNB/mac_config.h
View file @
5c3c374c
...
...
@@ -43,4 +43,6 @@ typedef struct gnb_sat_position_update_s {
bool
nr_update_sib19
(
const
gnb_sat_position_update_t
*
sat_position
);
bool
nr_trigger_bwp_switch
(
uint16_t
rnti
,
int
bwp_id
);
#endif
/*__LAYER2_NR_MAC_CONFIG_H__*/
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