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
spbro
OpenXG-RAN
Commits
abb7439b
Commit
abb7439b
authored
May 14, 2024
by
ndomingues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compute RA 2-Step MsgB_RNTI as specified in 3GPP TS 38.321 Section 5.1.3a
parent
e4655154
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
+9
-0
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.h
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.h
+2
-0
No files found.
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
View file @
abb7439b
...
...
@@ -5312,6 +5312,15 @@ rnti_t nr_get_ra_rnti(uint8_t s_id, uint8_t t_id, uint8_t f_id, uint8_t ul_carri
return
ra_rnti
;
}
rnti_t
nr_get_MsgB_rnti
(
uint8_t
s_id
,
uint8_t
t_id
,
uint8_t
f_id
,
uint8_t
ul_carrier_id
)
{
// 3GPP TS 38.321 Section 5.1.3a
rnti_t
MsgB_rnti
=
1
+
s_id
+
14
*
t_id
+
1120
*
f_id
+
8960
*
ul_carrier_id
+
17920
;
LOG_D
(
MAC
,
"f_id %d t_id %d s_id %d ul_carrier_id %d Computed MsgB_RNTI is 0x%04X
\n
"
,
f_id
,
t_id
,
s_id
,
ul_carrier_id
,
MsgB_rnti
);
return
MsgB_rnti
;
}
int
get_FeedbackDisabled
(
NR_DownlinkHARQ_FeedbackDisabled_r17_t
*
downlinkHARQ_FeedbackDisabled_r17
,
int
harq_pid
)
{
if
(
downlinkHARQ_FeedbackDisabled_r17
==
NULL
)
...
...
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.h
View file @
abb7439b
...
...
@@ -317,6 +317,8 @@ uint32_t compute_PDU_length(uint32_t num_TLV, uint32_t total_length);
rnti_t
nr_get_ra_rnti
(
uint8_t
s_id
,
uint8_t
t_id
,
uint8_t
f_id
,
uint8_t
ul_carrier_id
);
rnti_t
nr_get_MsgB_rnti
(
uint8_t
s_id
,
uint8_t
t_id
,
uint8_t
f_id
,
uint8_t
ul_carrier_id
);
bool
supported_bw_comparison
(
int
bw_mhz
,
NR_SupportedBandwidth_t
*
supported_BW
,
long
*
support_90mhz
);
int
get_FeedbackDisabled
(
NR_DownlinkHARQ_FeedbackDisabled_r17_t
*
downlinkHARQ_FeedbackDisabled_r17
,
int
harq_pid
);
...
...
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