Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
8c0b196f
Commit
8c0b196f
authored
Jul 12, 2018
by
ChenWeiTai
Browse files
Fix the BIT STRING ERROR problem in MIB
parent
2b3818ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
openair1/SCHED_NR/fapi_nr_l1.c
View file @
8c0b196f
...
...
@@ -45,7 +45,7 @@ void handle_nr_nfapi_bch_pdu(PHY_VARS_gNB *gNB,
AssertFatal
(
dl_config_pdu
->
bch_pdu_rel15
.
length
==
3
,
"BCH PDU has length %d != 3
\n
"
,
dl_config_pdu
->
bch_pdu_rel15
.
length
);
LOG_I
(
PHY
,
"bch_pdu: %x,
%x,
%x
\n
"
,
sdu
[
0
],
sdu
[
1
],
sdu
[
2
]);
LOG_I
(
PHY
,
"
p
bch_pdu
[0]
: %x,
pbch_pdu[1]: %x,gNB->pbch_pdu[2]:
%x
\n
"
,
sdu
[
0
],
sdu
[
1
],
sdu
[
2
]);
gNB
->
pbch_pdu
[
0
]
=
sdu
[
2
];
gNB
->
pbch_pdu
[
1
]
=
sdu
[
1
];
gNB
->
pbch_pdu
[
2
]
=
sdu
[
0
];
...
...
openair2/RRC/NR/L2_nr_interface.c
View file @
8c0b196f
...
...
@@ -38,13 +38,13 @@ int8_t mac_rrc_nr_data_req(const module_id_t Mod_idP,
mib
=
&
carrier
->
mib
;
if
(
(
Srb_id
&
RAB_OFFSET
)
==
MIBCH
)
{
mib
->
message
.
choice
.
mib
->
systemFrameNumber
.
buf
=
&
sfn_msb
;
mib
->
message
.
choice
.
mib
->
systemFrameNumber
.
buf
=
sfn_msb
<<
2
;
enc_rval
=
uper_encode_to_buffer
(
&
asn_DEF_NR_BCCH_BCH_Message
,
NULL
,
(
void
*
)
mib
,
carrier
->
MIB
,
24
);
LOG_I
(
NR_RRC
,
"Encoded MIB for frame %d (%p), bits %lu
\n
"
,
sfn_msb
,
carrier
->
MIB
,
enc_rval
.
encoded
);
LOG_I
(
NR_RRC
,
"Encoded MIB for frame %d
sfn_msb %d
(%p), bits %lu
\n
"
,
frameP
,
sfn_msb
,
carrier
->
MIB
,
enc_rval
.
encoded
);
buffer_pP
[
0
]
=
carrier
->
MIB
[
0
];
buffer_pP
[
1
]
=
carrier
->
MIB
[
1
];
buffer_pP
[
2
]
=
carrier
->
MIB
[
2
];
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
8c0b196f
...
...
@@ -206,7 +206,8 @@ uint8_t do_MIB_NR(rrc_gNB_carrier_data_t *carrier,
memset
(
mib
->
message
.
choice
.
mib
,
0
,
sizeof
(
struct
NR_MIB
));
//36.331 SFN BIT STRING (SIZE (8) , 38.331 SFN BIT STRING (SIZE (6))
uint8_t
sfn_msb
=
(
uint8_t
)((
frame
>>
4
)
&
0x3f
);
mib
->
message
.
choice
.
mib
->
systemFrameNumber
.
buf
=
&
sfn_msb
;
mib
->
message
.
choice
.
mib
->
systemFrameNumber
.
buf
=
CALLOC
(
1
,
sizeof
(
uint8_t
));
mib
->
message
.
choice
.
mib
->
systemFrameNumber
.
buf
=
sfn_msb
<<
2
;
mib
->
message
.
choice
.
mib
->
systemFrameNumber
.
size
=
1
;
mib
->
message
.
choice
.
mib
->
systemFrameNumber
.
bits_unused
=
2
;
...
...
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