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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
0565b999
Commit
0565b999
authored
Feb 13, 2025
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
function for backoff indicator table
parent
9c16a323
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
openair2/LAYER2/NR_MAC_UE/mac_extern.h
openair2/LAYER2/NR_MAC_UE/mac_extern.h
+0
-2
openair2/LAYER2/NR_MAC_UE/mac_proto.h
openair2/LAYER2/NR_MAC_UE/mac_proto.h
+1
-1
openair2/LAYER2/NR_MAC_UE/mac_vars.c
openair2/LAYER2/NR_MAC_UE/mac_vars.c
+7
-1
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+1
-1
No files found.
openair2/LAYER2/NR_MAC_UE/mac_extern.h
View file @
0565b999
...
...
@@ -47,8 +47,6 @@ extern const uint8_t table_7_3_1_1_2_21[19][4];
extern
const
uint8_t
table_7_3_1_1_2_22
[
6
][
5
];
extern
const
uint8_t
table_7_3_1_1_2_23
[
5
][
6
];
extern
const
uint16_t
table_7_2_1
[
16
];
extern
void
mac_rlc_data_ind
(
const
module_id_t
module_idP
,
const
rnti_t
rntiP
,
const
eNB_index_t
eNB_index
,
...
...
openair2/LAYER2/NR_MAC_UE/mac_proto.h
View file @
0565b999
...
...
@@ -207,7 +207,7 @@ void set_harq_status(NR_UE_MAC_INST_t *mac,
bool
get_downlink_ack
(
NR_UE_MAC_INST_t
*
mac
,
frame_t
frame
,
int
slot
,
PUCCH_sched_t
*
pucch
);
initial_pucch_resource_t
get_initial_pucch_resource
(
const
int
idx
);
void
multiplex_pucch_resource
(
NR_UE_MAC_INST_t
*
mac
,
PUCCH_sched_t
*
pucch
,
int
num_res
);
uint32_t
get_backoff_indicator
(
int
idx
);
int16_t
get_pucch_tx_power_ue
(
NR_UE_MAC_INST_t
*
mac
,
int
scs
,
NR_PUCCH_Config_t
*
pucch_Config
,
...
...
openair2/LAYER2/NR_MAC_UE/mac_vars.c
View file @
0565b999
...
...
@@ -413,7 +413,7 @@ const uint8_t table_7_3_2_3_3_4_twoCodeword[6][14] = {
};
// table 7.2-1 TS 38.321
const
uint
16
_t
table_7_2_1
[
16
]
=
{
const
uint
32
_t
table_7_2_1
[
16
]
=
{
5
,
// row index 0
10
,
// row index 1
20
,
// row index 2
...
...
@@ -430,6 +430,12 @@ const uint16_t table_7_2_1[16] = {
1920
,
// row index 13
};
uint32_t
get_backoff_indicator
(
int
idx
)
{
AssertFatal
(
idx
<
16
,
"Backoff indicator index %d exeeding table size
\n
"
,
idx
);
return
table_7_2_1
[
idx
];
}
static
inline
uint16_t
packBits
(
const
uint8_t
*
toPack
,
const
int
nb
)
{
int
res
=
0
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
0565b999
...
...
@@ -3915,7 +3915,7 @@ static void nr_ue_process_rar(NR_UE_MAC_INST_t *mac, nr_downlink_indication_t *d
n_subPDUs
++
;
LOG_I
(
NR_MAC
,
"[UE %d][RAPROC][RA-RNTI %04x] Got RAPID RAR subPDU
\n
"
,
mac
->
ue_id
,
rnti
);
}
else
{
ra
->
RA_backoff_indicator
=
table_7_2_1
[((
NR_RA_HEADER_BI
*
)
rarh
)
->
BI
]
;
ra
->
RA_backoff_indicator
=
get_backoff_indicator
(((
NR_RA_HEADER_BI
*
)
rarh
)
->
BI
)
;
ra
->
RA_BI_found
=
1
;
LOG_I
(
NR_MAC
,
"[UE %d][RAPROC][RA-RNTI %04x] Got BI RAR subPDU %d ms
\n
"
,
mac
->
ue_id
,
ra
->
RA_backoff_indicator
,
rnti
);
if
(
((
NR_RA_HEADER_BI
*
)
rarh
)
->
E
==
1
)
{
...
...
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