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
b57054b6
Commit
b57054b6
authored
Jun 26, 2018
by
WEI-TAI CHEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error in do_SERVINGCELLCONFIGCOMMON Function
parent
89e39c88
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
41 deletions
+26
-41
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+26
-26
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+0
-15
No files found.
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
b57054b6
...
...
@@ -298,7 +298,7 @@ void do_SERVINGCELLCONFIGCOMMON(uint8_t Mod_id,
(
*
servingcellconfigcommon
)
->
initialDownlinkBWP
=
CALLOC
(
1
,
sizeof
(
struct
NR_BWP_DownlinkCommon
));
(
*
servingcellconfigcommon
)
->
uplinkConfigCommon
=
CALLOC
(
1
,
sizeof
(
struct
NR_UplinkConfigCommon
));
//(*servingcellconfigcommon)->supplementaryUplinkConfig = CALLOC(1,sizeof(struct NR_UplinkConfigCommon));
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
=
CALLOC
(
1
,
sizeof
(
struct
NR_ServingCellConfigCommon__ssb_PositionsInBurst
));
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
=
CALLOC
(
1
,
sizeof
(
struct
NR_ServingCellConfigCommon__ssb_PositionsInBurst
));
(
*
servingcellconfigcommon
)
->
ssb_periodicityServingCell
=
CALLOC
(
1
,
sizeof
(
long
));
//(*servingcellconfigcommon)->lte_CRS_ToMatchAround = CALLOC(1,sizeof(struct NR_SetupRelease_RateMatchPatternLTE_CRS));
(
*
servingcellconfigcommon
)
->
rateMatchPatternToAddModList
=
CALLOC
(
1
,
sizeof
(
struct
NR_ServingCellConfigCommon__rateMatchPatternToAddModList
));
...
...
@@ -514,7 +514,7 @@ void do_SERVINGCELLCONFIGCOMMON(uint8_t Mod_id,
NR_FreqBandIndicatorNR_t
*
ul_frequencyBandList
;
ul_frequencyBandList
=
CALLOC
(
1
,
sizeof
(
NR_FreqBandIndicatorNR_t
));
*
(
ul_frequencyBandList
)
=
configuration
->
UL_FreqBandIndicatorNR
[
CC_id
];
ASN_SEQUENCE_ADD
(
&
(
*
servingcellconfigcommon
)
->
frequencyInfoUL
->
frequencyBandList
->
list
,
&
ul_frequencyBandList
);
ASN_SEQUENCE_ADD
(
&
(
*
servingcellconfigcommon
)
->
uplinkConfigCommon
->
frequencyInfoUL
->
frequencyBandList
->
list
,
&
ul_frequencyBandList
);
(
*
servingcellconfigcommon
)
->
uplinkConfigCommon
->
frequencyInfoUL
->
absoluteFrequencyPointA
=
CALLOC
(
1
,
sizeof
(
NR_ARFCN_ValueNR_t
));
*
((
*
servingcellconfigcommon
)
->
uplinkConfigCommon
->
frequencyInfoUL
->
absoluteFrequencyPointA
)
=
configuration
->
UL_absoluteFrequencyPointA
[
CC_id
];
...
...
@@ -669,30 +669,30 @@ void do_SERVINGCELLCONFIGCOMMON(uint8_t Mod_id,
(
*
servingcellconfigcommon
)
->
uplinkConfigCommon
->
initialUplinkBWP
->
pucch_ConfigCommon
->
choice
.
setup
->
hoppingId
->
buf
[
1
]
=
0xff
;
//ssb_PositionsInBurst
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
present
=
configuration
->
ServingCellConfigCommon_ssb_PositionsInBurst_PR
[
CC_id
];
if
((
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
present
==
NR_ServingCellConfigCommon__ssb_PositionsInBurst_PR_shortBitmap
){
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
shortBitmap
.
buf
=
MALLOC
(
1
);
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
shortBitmap
.
size
=
1
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
shortBitmap
.
bits_unused
=
4
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
shortBitmap
.
buf
[
0
]
=
0x0f
;
}
else
if
((
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
present
==
NR_ServingCellConfigCommon__ssb_PositionsInBurst_PR_mediumBitmap
){
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
mediumBitmap
.
buf
=
MALLOC
(
1
);
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
mediumBitmap
.
size
=
1
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
mediumBitmap
.
bits_unused
=
0
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
mediumBitmap
.
buf
[
0
]
=
0xff
;
}
else
if
((
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
present
==
NR_ServingCellConfigCommon__ssb_PositionsInBurst_PR_longBitmap
){
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
buf
=
MALLOC
(
8
);
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
size
=
8
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
bits_unused
=
0
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
buf
[
0
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
buf
[
1
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
buf
[
2
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
buf
[
3
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
buf
[
4
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
buf
[
5
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
buf
[
6
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
positionsinb
urst
->
choice
.
longBitmap
.
buf
[
7
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
present
=
configuration
->
ServingCellConfigCommon_ssb_PositionsInBurst_PR
[
CC_id
];
if
((
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
present
==
NR_ServingCellConfigCommon__ssb_PositionsInBurst_PR_shortBitmap
){
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
shortBitmap
.
buf
=
MALLOC
(
1
);
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
shortBitmap
.
size
=
1
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
shortBitmap
.
bits_unused
=
4
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
shortBitmap
.
buf
[
0
]
=
0x0f
;
}
else
if
((
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
present
==
NR_ServingCellConfigCommon__ssb_PositionsInBurst_PR_mediumBitmap
){
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
mediumBitmap
.
buf
=
MALLOC
(
1
);
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
mediumBitmap
.
size
=
1
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
mediumBitmap
.
bits_unused
=
0
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
mediumBitmap
.
buf
[
0
]
=
0xff
;
}
else
if
((
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
present
==
NR_ServingCellConfigCommon__ssb_PositionsInBurst_PR_longBitmap
){
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
buf
=
MALLOC
(
8
);
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
size
=
8
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
bits_unused
=
0
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
buf
[
0
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
buf
[
1
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
buf
[
2
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
buf
[
3
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
buf
[
4
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
buf
[
5
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
buf
[
6
]
=
0xff
;
(
*
servingcellconfigcommon
)
->
ssb_
PositionsInB
urst
->
choice
.
longBitmap
.
buf
[
7
]
=
0xff
;
}
//ssb_periodicityServingCell
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
b57054b6
...
...
@@ -172,21 +172,6 @@ init_NR_SI(
#endif
);
///SIB1
RC
.
nrrrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sizeof_SIB1
=
0
;
RC
.
nrrrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
SIB1
=
(
uint8_t
*
)
malloc16
(
32
);
AssertFatal
(
RC
.
nrrrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
SIB1
!=
NULL
,
PROTOCOL_NR_RRC_CTXT_FMT
" init_SI: FATAL, no memory for NR SIB1 allocated
\n
"
,
PROTOCOL_RRC_CTXT_ARGS
(
ctxt_pP
));
/* RC.nrrrc[ctxt_pP->module_id]->carrier[CC_id].sizeof_SIB1 = do_SIB1_NR(&RC.nrrrc[ctxt_pP->module_id]->carrier[CC_id],
ctxt_pP->module_id,
CC_id
#if defined(ENABLE_ITTI)
,configuration
#endif
);*/
AssertFatal
(
RC
.
nrrrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sizeof_SIB1
!=
255
,
"FATAL, RC.nrrrc[enb_mod_idP].carrier[CC_id].sizeof_SIB1 == 255"
);
do_SERVINGCELLCONFIGCOMMON
(
ctxt_pP
->
module_id
,
CC_id
#if defined(ENABLE_ITTI)
...
...
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