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
2269f1e4
Commit
2269f1e4
authored
Mar 26, 2025
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary gNB include in nr_mac_common
parent
159f06cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
18 deletions
+15
-18
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
+15
-16
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+0
-2
No files found.
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
View file @
2269f1e4
...
...
@@ -30,7 +30,8 @@
*/
#include "LAYER2/NR_MAC_gNB/mac_proto.h"
#include "nr_mac.h"
#include "nr_mac_common.h"
#include "common/utils/nr/nr_common.h"
#include <limits.h>
#include <executables/softmodem-common.h>
...
...
@@ -2431,6 +2432,19 @@ uint8_t get_pusch_nb_antenna_ports(NR_PUSCH_Config_t *pusch_Config,
return
n_antenna_port
;
}
static
int
binomial
(
int
n
,
int
k
)
{
if
(
k
>
n
-
k
)
k
=
n
-
k
;
int
c
=
1
;
for
(
int
i
=
1
;
i
<=
k
;
i
++
,
n
--
)
{
if
(
c
/
i
>
UINT_MAX
/
n
)
// return 0 on overflow
return
0
;
c
=
c
/
i
*
n
+
c
%
i
*
n
/
i
;
}
return
c
;
}
// #define DEBUG_SRS_RESOURCE_IND
uint8_t
compute_srs_resource_indicator
(
long
*
maxMIMO_Layers
,
NR_PUSCH_Config_t
*
pusch_Config
,
...
...
@@ -3422,21 +3436,6 @@ uint8_t get_pusch_mcs_table(long *mcs_Table,
}
int
binomial
(
int
n
,
int
k
)
{
int
c
=
1
,
i
;
if
(
k
>
n
-
k
)
k
=
n
-
k
;
for
(
i
=
1
;
i
<=
k
;
i
++
,
n
--
)
{
if
(
c
/
i
>
UINT_MAX
/
n
)
// return 0 on overflow
return
0
;
c
=
c
/
i
*
n
+
c
%
i
*
n
/
i
;
}
return
c
;
}
/* extract PTRS values from RC and validate it based upon 38.214 5.1.6.3 */
bool
set_dl_ptrs_values
(
NR_PTRS_DownlinkConfig_t
*
ptrs_config
,
uint16_t
rbSize
,
uint8_t
mcsIndex
,
uint8_t
mcsTable
,
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
2269f1e4
...
...
@@ -337,8 +337,6 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
unsigned
char
drx_cmd
,
unsigned
char
*
ue_cont_res_id
);
int
binomial
(
int
n
,
int
k
);
/* \brief Function to indicate a received SDU on ULSCH.
@param Mod_id Instance ID of gNB
@param CC_id Component carrier index
...
...
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