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
3f05ac29
Commit
3f05ac29
authored
Oct 19, 2022
by
Vaibhav Shrivastava
Committed by
jperaldi
Nov 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction for Paging IND
parent
f1bc7288
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
129 additions
and
111 deletions
+129
-111
openair3/SS/ss_eNB_sys_task.c
openair3/SS/ss_eNB_sys_task.c
+129
-111
No files found.
openair3/SS/ss_eNB_sys_task.c
View file @
3f05ac29
...
...
@@ -1264,12 +1264,13 @@ static void sys_handle_paging_req(struct PagingTrigger_Type *pagingRequest, ss_s
LOG_A
(
ENB_SS
,
"[SYS] Enter sys_handle_paging_req Paging_IND for processing
\n
"
);
/** TODO: Considering only one cell for now */
uint8_t
cellId
=
SS_context
.
SSCell_list
[
cell_index
].
PhysicalCellId
;
//(uint8_t)pagingRequ ->CellId;
uint8_t
cellId
=
0
;
//(uint8_t)pagingRequ ->CellId;
uint8_t
cn_domain
=
0
;
enum
SystemConfirm_Type_Sel
cnfType
=
SystemConfirm_Type_Paging
;
enum
ConfirmationResult_Type_Sel
resType
=
ConfirmationResult_Type_Success
;
bool
resVal
=
TRUE
;
static
uint8_t
oneTimeProcessingFlag
=
0
;
MessageDef
*
message_p
=
itti_alloc_new_message
(
TASK_SYS
,
0
,
SS_SS_PAGING_IND
);
if
(
message_p
==
NULL
)
{
...
...
@@ -1289,38 +1290,50 @@ static void sys_handle_paging_req(struct PagingTrigger_Type *pagingRequest, ss_s
{
if
(
pagingRequest
->
Paging
.
message
.
v
.
c1
.
v
.
paging
.
pagingRecordList
.
d
)
{
cn_domain
=
pagingRequest
->
Paging
.
message
.
v
.
c1
.
v
.
paging
.
pagingRecordList
.
v
.
v
->
cn_Domain
;
struct
SQN_PagingRecord
*
p_sdl_msg
=
NULL
;
p_sdl_msg
=
pagingRequest
->
Paging
.
message
.
v
.
c1
.
v
.
paging
.
pagingRecordList
.
v
.
v
;
/* id-CNDomain : convert cnDomain */
uint8_t
numPagingRecord
=
pagingRequest
->
Paging
.
message
.
v
.
c1
.
v
.
paging
.
pagingRecordList
.
v
.
d
;
size_t
pgSize
=
pagingRequest
->
Paging
.
message
.
v
.
c1
.
v
.
paging
.
pagingRecordList
.
v
.
d
*
sizeof
(
ss_paging_identity_t
);
SS_PAGING_IND
(
message_p
).
sfn
=
tinfo
.
sfn
;
SS_PAGING_IND
(
message_p
).
sf
=
tinfo
.
sf
;
SS_PAGING_IND
(
message_p
).
paging_recordList
=
CALLOC
(
1
,
pgSize
);
ss_paging_identity_t
*
p_record_msg
=
SS_PAGING_IND
(
message_p
).
paging_recordList
;
SS_PAGING_IND
(
message_p
).
num_paging_record
=
numPagingRecord
;
for
(
int
count
=
0
;
count
<
numPagingRecord
;
count
++
)
{
cn_domain
=
p_sdl_msg
->
cn_Domain
;
/* id-CNDomain : convert cnDomain */
if
(
cn_domain
==
SQN_PagingRecord_cn_Domain_e_ps
)
{
SS_PAGING_IND
(
message_p
).
paging_recordList
->
cn_domain
=
CN_DOMAIN_PS
;
p_record_msg
->
cn_domain
=
CN_DOMAIN_PS
;
}
else
if
(
cn_domain
==
SQN_PagingRecord_cn_Domain_e_cs
)
{
SS_PAGING_IND
(
message_p
).
paging_recordList
->
cn_domain
=
CN_DOMAIN_CS
;
p_record_msg
->
cn_domain
=
CN_DOMAIN_CS
;
}
switch
(
pagingRequest
->
Paging
.
message
.
v
.
c1
.
v
.
paging
.
pagingRecordList
.
v
.
v
->
ue_Identity
.
d
)
switch
(
p_sdl_msg
->
ue_Identity
.
d
)
{
case
SQN_PagingUE_Identity_s_TMSI
:
SS_PAGING_IND
(
message_p
).
paging_recordList
->
ue_paging_identity
.
presenceMask
=
UE_PAGING_IDENTITY_s_tmsi
;
int32_t
stmsi_rx
=
bin_to_int
(
pagingRequest
->
Paging
.
message
.
v
.
c1
.
v
.
paging
.
pagingRecordList
.
v
.
v
->
ue_Identity
.
v
.
s_TMSI
.
m_TMSI
,
32
);
p_record_msg
->
ue_paging_identity
.
presenceMask
=
UE_PAGING_IDENTITY_s_tmsi
;
int32_t
stmsi_rx
=
bin_to_int
(
p_sdl_msg
->
ue_Identity
.
v
.
s_TMSI
.
m_TMSI
,
32
);
SS_PAGING_IND
(
message_p
).
paging_recordList
->
ue_paging_identity
.
choice
.
s_tmsi
.
m_tmsi
=
stmsi_rx
;
SS_PAGING_IND
(
message_p
).
paging_recordList
->
ue_paging_identity
.
choice
.
s_tmsi
.
mme_code
=
bin_to_int
(
pagingRequest
->
Paging
.
message
.
v
.
c1
.
v
.
paging
.
pagingRecordList
.
v
.
v
->
ue_Identity
.
v
.
s_TMSI
.
mmec
,
8
);
p_record_msg
->
ue_paging_identity
.
choice
.
s_tmsi
.
m_tmsi
=
stmsi_rx
;
p_record_msg
->
ue_paging_identity
.
choice
.
s_tmsi
.
mme_code
=
bin_to_int
(
p_sdl_msg
->
ue_Identity
.
v
.
s_TMSI
.
mmec
,
8
);
if
(
oneTimeProcessingFlag
==
0
)
{
SS_PAGING_IND
(
message_p
).
ue_index_value
=
paging_ue_index_g
;
paging_ue_index_g
=
((
paging_ue_index_g
+
4
)
%
MAX_MOBILES_PER_ENB
)
;
oneTimeProcessingFlag
=
1
;
}
break
;
case
SQN_PagingUE_Identity_imsi
:
SS_PAGING_IND
(
message_p
).
paging_recordList
->
ue_paging_identity
.
presenceMask
=
UE_PAGING_IDENTITY_imsi
;
p_record_msg
->
ue_paging_identity
.
presenceMask
=
UE_PAGING_IDENTITY_imsi
;
memcpy
(
&
(
SS_PAGING_IND
(
message_p
).
paging_recordList
->
ue_paging_identity
.
choice
.
imsi
),
&
(
pagingRequest
->
Paging
.
message
.
v
.
c1
.
v
.
paging
.
pagingRecordList
.
v
.
v
->
ue_Identity
.
v
.
imsi
),
memcpy
(
&
(
p_record_msg
->
ue_paging_identity
.
choice
.
imsi
),
&
(
p_sdl_msg
->
ue_Identity
.
v
.
imsi
),
sizeof
(
s1ap_imsi_t
));
break
;
case
SQN_PagingUE_Identity_ng_5G_S_TMSI_r15
:
...
...
@@ -1332,6 +1345,9 @@ static void sys_handle_paging_req(struct PagingTrigger_Type *pagingRequest, ss_s
LOG_A
(
ENB_SS
,
"[SYS] Invalid Pging request received
\n
"
);
}
p_sdl_msg
++
;
p_record_msg
++
;
}
}
if
(
pagingRequest
->
Paging
.
message
.
v
.
c1
.
v
.
paging
.
systemInfoModification
.
d
)
...
...
@@ -1360,7 +1376,7 @@ static void sys_handle_paging_req(struct PagingTrigger_Type *pagingRequest, ss_s
{
LOG_A
(
ENB_SS
,
"[SYS] Error sending Paging to RRC_ENB"
);
}
oneTimeProcessingFlag
=
0
;
LOG_A
(
ENB_SS
,
"[SYS] Paging_IND for Cell_id %d sent to RRC
\n
"
,
cellId
);
break
;
case
SQN_PCCH_MessageType_messageClassExtension
:
...
...
@@ -1376,6 +1392,8 @@ static void sys_handle_paging_req(struct PagingTrigger_Type *pagingRequest, ss_s
send_sys_cnf
(
resType
,
resVal
,
cnfType
,
NULL
);
LOG_A
(
ENB_SS
,
"[SYS] Exit sys_handle_paging_req Paging_IND processing for Cell_id %d
\n
"
,
cellId
);
}
/*
* Function : sys_handle_enquire_timing
* Description: Sends the enquire timing update to PORTMAN
...
...
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