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
Michael Black
OpenXG-RAN
Commits
5ee9bc2c
Commit
5ee9bc2c
authored
Jun 28, 2021
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating matacher function for de-queuing
parent
f61d5b74
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
11 deletions
+23
-11
executables/nr-ue.c
executables/nr-ue.c
+23
-11
No files found.
executables/nr-ue.c
View file @
5ee9bc2c
...
...
@@ -189,20 +189,32 @@ static void reset_queue(queue_t *q)
static
bool
sfn_slot_matcher
(
void
*
wanted
,
void
*
candidate
)
{
n
r_queue_candidate
*
ind
=
candidate
;
n
fapi_p7_message_header_t
*
msg
=
candidate
;
int
sfn_sf
=
*
(
int
*
)
wanted
;
if
(
NFAPI_SFNSLOT2SFN
(
sfn_sf
)
==
ind
->
rach_ind
.
sfn
&&
NFAPI_SFNSLOT2SLOT
(
sfn_sf
)
==
ind
->
rach_ind
.
slot
)
switch
(
msg
->
message_id
)
{
return
true
;
case
NFAPI_NR_PHY_MSG_TYPE_RACH_INDICATION
:
{
nfapi_nr_rach_indication_t
*
ind
=
candidate
;
return
NFAPI_SFNSLOT2SFN
(
sfn_sf
)
==
ind
->
sfn
&&
NFAPI_SFNSLOT2SLOT
(
sfn_sf
)
==
ind
->
slot
;
}
else
if
(
NFAPI_SFNSLOT2SFN
(
sfn_sf
)
==
ind
->
rx_ind
.
sfn
&&
NFAPI_SFNSLOT2SLOT
(
sfn_sf
)
==
ind
->
rx_ind
.
slot
)
case
NFAPI_NR_PHY_MSG_TYPE_RX_DATA_INDICATION
:
{
return
true
;
nfapi_nr_rx_data_indication_t
*
ind
=
candidate
;
return
NFAPI_SFNSLOT2SFN
(
sfn_sf
)
==
ind
->
sfn
&&
NFAPI_SFNSLOT2SLOT
(
sfn_sf
)
==
ind
->
slot
;
}
else
if
(
NFAPI_SFNSLOT2SFN
(
sfn_sf
)
==
ind
->
crc_ind
.
sfn
&&
NFAPI_SFNSLOT2SLOT
(
sfn_sf
)
==
ind
->
crc_ind
.
slot
)
case
NFAPI_NR_PHY_MSG_TYPE_CRC_INDICATION
:
{
return
true
;
nfapi_nr_crc_indication_t
*
ind
=
candidate
;
return
NFAPI_SFNSLOT2SFN
(
sfn_sf
)
==
ind
->
sfn
&&
NFAPI_SFNSLOT2SLOT
(
sfn_sf
)
==
ind
->
slot
;
}
default:
LOG_E
(
NR_MAC
,
"sfn_slot_match bad ID: %d
\n
"
,
msg
->
message_id
);
}
return
false
;
...
...
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