Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
1e6c36d8
Commit
1e6c36d8
authored
3 years ago
by
Francesco Mani
Browse files
Options
Downloads
Patches
Plain Diff
fix segfault in SA rfsim
parent
3186d45e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!1757
Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c
,
!1555
integration_2022_wk19b
,
!1454
Implementation of multiple dedicated BWPs
,
!1175
WIP: Addition of dedicated BWPs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair2/LAYER2/NR_MAC_UE/config_ue.c
+7
-3
7 additions, 3 deletions
openair2/LAYER2/NR_MAC_UE/config_ue.c
with
7 additions
and
3 deletions
openair2/LAYER2/NR_MAC_UE/config_ue.c
+
7
−
3
View file @
1e6c36d8
...
...
@@ -496,14 +496,18 @@ void config_bwp_ue(NR_UE_MAC_INST_t *mac, uint16_t *bwp_ind, uint8_t *dci_format
NR_ServingCellConfig_t
*
scd
=
mac
->
cg
->
spCellConfig
->
spCellConfigDedicated
;
if
(
bwp_ind
&&
dci_format
){
int
n_ubwp
=
0
;
if
(
scd
&&
scd
->
uplinkConfig
&&
scd
->
uplinkConfig
->
uplinkBWP_ToAddModList
)
n_ubwp
=
scd
->
uplinkConfig
->
uplinkBWP_ToAddModList
->
list
.
count
;
if
(
bwp_ind
&&
dci_format
){
switch
(
*
dci_format
){
case
NR_UL_DCI_FORMAT_0_1
:
mac
->
UL_BWP_Id
=
*
bwp_ind
+
1
;
mac
->
UL_BWP_Id
=
n_ubwp
<
4
?
*
bwp_ind
:
*
bwp_ind
+
1
;
;
break
;
case
NR_DL_DCI_FORMAT_1_1
:
mac
->
DL_BWP_Id
=
*
bwp_ind
+
1
;
mac
->
DL_BWP_Id
=
n_ubwp
<
4
?
*
bwp_ind
:
*
bwp_ind
+
1
;
;
break
;
default:
LOG_E
(
MAC
,
"In %s: failed to configure BWP Id from DCI with format %d
\n
"
,
__FUNCTION__
,
*
dci_format
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment