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
ae8a7f39
Commit
ae8a7f39
authored
Mar 02, 2023
by
Siddharth Rana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rebasing to 3GPP_TTCN_System_Simulator Commit: 69efee8cd3e8ee29fc6d1373c0fbafd61f9ba103
parent
54504fdd
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
183 additions
and
38 deletions
+183
-38
executables/lte-enb.c
executables/lte-enb.c
+1
-1
openair3/SS/ss_eNB_drb_task.c
openair3/SS/ss_eNB_drb_task.c
+29
-1
openair3/SS/ss_eNB_sys_task.c
openair3/SS/ss_eNB_sys_task.c
+153
-36
No files found.
executables/lte-enb.c
View file @
ae8a7f39
...
@@ -279,7 +279,7 @@ static inline int rxtx(PHY_VARS_eNB *eNB,
...
@@ -279,7 +279,7 @@ static inline int rxtx(PHY_VARS_eNB *eNB,
{
{
SS_UPD_TIM_INFO
(
message_p_vtp
).
sf
=
eNB
->
UL_INFO
.
subframe
;
SS_UPD_TIM_INFO
(
message_p_vtp
).
sf
=
eNB
->
UL_INFO
.
subframe
;
SS_UPD_TIM_INFO
(
message_p_vtp
).
sfn
=
eNB
->
UL_INFO
.
frame
;
SS_UPD_TIM_INFO
(
message_p_vtp
).
sfn
=
eNB
->
UL_INFO
.
frame
;
SS_UPD_TIM_INFO
(
message_p
).
physCellId
=
RC
.
rrc
[
eNB
->
UL_INFO
.
module_id
]
->
carrier
[
eNB
->
UL_INFO
.
CC_id
].
physCellId
;
SS_UPD_TIM_INFO
(
message_p
_vtp
).
physCellId
=
RC
.
rrc
[
eNB
->
UL_INFO
.
module_id
]
->
carrier
[
eNB
->
UL_INFO
.
CC_id
].
physCellId
;
int
send_res
=
itti_send_msg_to_task
(
TASK_VTP
,
0
,
message_p_vtp
);
int
send_res
=
itti_send_msg_to_task
(
TASK_VTP
,
0
,
message_p_vtp
);
if
(
send_res
<
0
)
if
(
send_res
<
0
)
{
{
...
...
openair3/SS/ss_eNB_drb_task.c
View file @
ae8a7f39
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
#include "acpDrb.h"
#include "acpDrb.h"
#include "ss_eNB_context.h"
#include "ss_eNB_context.h"
#include "ss_eNB_vt_timer_task.h"
extern
RAN_CONTEXT_t
RC
;
extern
RAN_CONTEXT_t
RC
;
//extern uint16_t ss_rnti_g;
//extern uint16_t ss_rnti_g;
...
@@ -166,6 +167,33 @@ static void ss_task_handle_drb_pdu_req(struct DRB_COMMON_REQ *req,int cell_index
...
@@ -166,6 +167,33 @@ static void ss_task_handle_drb_pdu_req(struct DRB_COMMON_REQ *req,int cell_index
}
}
}
}
SS_DRB_PDU_REQ
(
message_p
).
rnti
=
SS_context
.
SSCell_list
[
cell_index
].
ss_rnti_g
;
uint8_t
msg_queued
=
0
;
if
(
req
->
Common
.
TimingInfo
.
d
==
TimingInfo_Type_SubFrame
)
{
ss_set_timinfo_t
tinfo
,
timer_tinfo
;
tinfo
.
sfn
=
req
->
Common
.
TimingInfo
.
v
.
SubFrame
.
SFN
.
v
.
Number
;
tinfo
.
sf
=
req
->
Common
.
TimingInfo
.
v
.
SubFrame
.
Subframe
.
v
.
Number
;
timer_tinfo
=
tinfo
;
msg_queued
=
msg_can_be_queued
(
tinfo
,
&
timer_tinfo
);
LOG_A
(
ENB_SS
,
"VT_TIMER DRB task received MSG for future SFN %d , SF %d
\n
"
,
tinfo
.
sfn
,
tinfo
.
sf
);
if
(
msg_queued
)
{
msg_queued
=
vt_timer_setup
(
timer_tinfo
,
TASK_RRC_ENB
,
instance_g
,
message_p
);
LOG_A
(
ENB_SS
,
"DRB_PDU Queued as the scheduled SFN is %d SF: %d and curr SFN %d , SF %d"
,
tinfo
.
sfn
,
tinfo
.
sf
,
SS_context
.
sfn
,
SS_context
.
sf
);
}
}
if
(
!
msg_queued
)
{
int
send_res
=
itti_send_msg_to_task
(
TASK_RRC_ENB
,
instance_g
,
message_p
);
if
(
send_res
<
0
)
{
LOG_A
(
ENB_APP
,
"[SS_DRB] Error in itti_send_msg_to_task"
);
}
LOG_A
(
ENB_APP
,
"Send res: %d"
,
send_res
);
}
}
}
SS_DRB_PDU_REQ
(
message_p
).
rnti
=
SS_context
.
SSCell_list
[
cell_index
].
ss_rnti_g
;
SS_DRB_PDU_REQ
(
message_p
).
rnti
=
SS_context
.
SSCell_list
[
cell_index
].
ss_rnti_g
;
...
@@ -274,7 +302,7 @@ void *ss_eNB_drb_process_itti_msg(void *notUsed)
...
@@ -274,7 +302,7 @@ void *ss_eNB_drb_process_itti_msg(void *notUsed)
{
{
case
SS_DRB_PDU_IND
:
case
SS_DRB_PDU_IND
:
{
{
int
cell_index
;
int
cell_index
=
0
;
if
(
received_msg
->
ittiMsg
.
ss_drb_pdu_ind
.
physCellId
){
if
(
received_msg
->
ittiMsg
.
ss_drb_pdu_ind
.
physCellId
){
cell_index
=
get_cell_index_pci
(
received_msg
->
ittiMsg
.
ss_drb_pdu_ind
.
physCellId
,
SS_context
.
SSCell_list
);
cell_index
=
get_cell_index_pci
(
received_msg
->
ittiMsg
.
ss_drb_pdu_ind
.
physCellId
,
SS_context
.
SSCell_list
);
LOG_A
(
ENB_SS
,
"[SS_DRB] cell_index in SS_DRB_PDU_IND: %d PhysicalCellId: %d
\n
"
,
cell_index
,
SS_context
.
SSCell_list
[
cell_index
].
PhysicalCellId
);
LOG_A
(
ENB_SS
,
"[SS_DRB] cell_index in SS_DRB_PDU_IND: %d PhysicalCellId: %d
\n
"
,
cell_index
,
SS_context
.
SSCell_list
[
cell_index
].
PhysicalCellId
);
...
...
openair3/SS/ss_eNB_sys_task.c
View file @
ae8a7f39
This diff is collapsed.
Click to expand it.
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