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
3ba63d1f
Commit
3ba63d1f
authored
Aug 26, 2020
by
Xue Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue about cplane for L2-SIM
parent
328e6c5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+16
-4
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
3ba63d1f
...
@@ -779,18 +779,28 @@ void dl_config_req_UE_MAC_dci(int sfn,
...
@@ -779,18 +779,28 @@ void dl_config_req_UE_MAC_dci(int sfn,
tx_request_pdu_list
[
pdu_index
].
segments
[
0
].
segment_data
,
tx_request_pdu_list
[
pdu_index
].
segments
[
0
].
segment_data
,
tx_request_pdu_list
[
pdu_index
].
segments
[
0
].
segment_length
);
tx_request_pdu_list
[
pdu_index
].
segments
[
0
].
segment_length
);
}
}
}
else
if
(
rnti
==
0x0002
)
{
/* RA-RNTI */
}
else
{
/* RA-RNTI */
int8_t
existed
=
0
;
for
(
int
ue_id
=
0
;
ue_id
<
num_ue
;
ue_id
++
)
{
for
(
int
ue_id
=
0
;
ue_id
<
num_ue
;
ue_id
++
)
{
if
(
UE_mac_inst
[
ue_id
].
UE_mode
[
0
]
!=
RA_RESPONSE
)
{
if
(
UE_mac_inst
[
ue_id
].
UE_mode
[
0
]
!=
RA_RESPONSE
)
{
LOG_D
(
MAC
,
"UE %d not awaiting RAR, is in mode %d
\n
"
,
LOG_D
(
MAC
,
"UE %d not awaiting RAR, is in mode %d
\n
"
,
ue_id
,
UE_mac_inst
[
ue_id
].
UE_mode
[
0
]);
ue_id
,
UE_mac_inst
[
ue_id
].
UE_mode
[
0
]);
continue
;
continue
;
}
}
if
(
rnti
!=
UE_mac_inst
[
ue_id
].
RA_prach_resources
.
ra_RNTI
)
continue
;
if
(
existed
==
0
){
existed
=
1
;
}
// RNTI parameter not actually used. Provided only to comply with
// RNTI parameter not actually used. Provided only to comply with
// existing function definition. Not sure about parameters to fill
// existing function definition. Not sure about parameters to fill
// the preamble index.
// the preamble index.
const
rnti_t
ra_rnti
=
UE_mac_inst
[
ue_id
].
RA_prach_resources
.
ra_RNTI
;
const
rnti_t
ra_rnti
=
UE_mac_inst
[
ue_id
].
RA_prach_resources
.
ra_RNTI
;
DevAssert
(
ra_rnti
==
0x0002
);
//
DevAssert(ra_rnti == 0x0002);
if
(
UE_mac_inst
[
ue_id
].
UE_mode
[
0
]
!=
PUSCH
if
(
UE_mac_inst
[
ue_id
].
UE_mode
[
0
]
!=
PUSCH
&&
UE_mac_inst
[
ue_id
].
RA_prach_resources
.
Msg3
!=
NULL
&&
UE_mac_inst
[
ue_id
].
RA_prach_resources
.
Msg3
!=
NULL
&&
ra_rnti
==
dlsch
->
dlsch_pdu
.
dlsch_pdu_rel8
.
rnti
)
{
&&
ra_rnti
==
dlsch
->
dlsch_pdu
.
dlsch_pdu_rel8
.
rnti
)
{
...
@@ -809,10 +819,12 @@ void dl_config_req_UE_MAC_dci(int sfn,
...
@@ -809,10 +819,12 @@ void dl_config_req_UE_MAC_dci(int sfn,
UE_mac_inst
[
ue_id
].
first_ULSCH_Tx
=
1
;
UE_mac_inst
[
ue_id
].
first_ULSCH_Tx
=
1
;
}
}
}
}
}
else
{
if
(
existed
==
0
){
LOG_W
(
MAC
,
"can not handle special RNTI %x
\n
"
,
rnti
);
LOG_W
(
MAC
,
"can not handle special RNTI %x
\n
"
,
rnti
);
}
}
}
}
}
}
}
void
dl_config_req_UE_MAC_bch
(
int
sfn
,
void
dl_config_req_UE_MAC_bch
(
int
sfn
,
...
...
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