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
ZhouShuya
OpenXG-RAN
Commits
903a1ec6
Commit
903a1ec6
authored
Feb 07, 2020
by
cig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup code, removed gNB headers in UE files
parent
36195ec3
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
31 deletions
+9
-31
executables/nr-uesoftmodem.h
executables/nr-uesoftmodem.h
+0
-1
openair1/PHY/NR_UE_TRANSPORT/nr_transport_ue.h
openair1/PHY/NR_UE_TRANSPORT/nr_transport_ue.h
+0
-2
openair1/PHY/TOOLS/nr_phy_scope.h
openair1/PHY/TOOLS/nr_phy_scope.h
+0
-1
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+1
-20
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+7
-6
openair2/RRC/NR/L2_nr_interface.c
openair2/RRC/NR/L2_nr_interface.c
+1
-1
No files found.
executables/nr-uesoftmodem.h
View file @
903a1ec6
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
#include <executables/softmodem-common.h>
#include <executables/softmodem-common.h>
#include "PHY/defs_nr_UE.h"
#include "PHY/defs_nr_UE.h"
#include "SIMULATION/ETH_TRANSPORT/proto.h"
#include "SIMULATION/ETH_TRANSPORT/proto.h"
#include "NR_MAC_gNB/mac_proto.h"
/***************************************************************************************************************************************/
/***************************************************************************************************************************************/
/* command line options definitions, CMDLINE_XXXX_DESC macros are used to initialize paramdef_t arrays which are then used as argument
/* command line options definitions, CMDLINE_XXXX_DESC macros are used to initialize paramdef_t arrays which are then used as argument
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_transport_ue.h
View file @
903a1ec6
...
@@ -42,8 +42,6 @@
...
@@ -42,8 +42,6 @@
#include "UTIL/LISTS/list.h"
#include "UTIL/LISTS/list.h"
#endif
#endif
#include "LAYER2/NR_MAC_gNB/mac_proto.h"
//#include "../LTE_TRANSPORT/transport_common.h"
//#include "../LTE_TRANSPORT/transport_common.h"
// structures below implement 36-211 and 36-212
// structures below implement 36-211 and 36-212
...
...
openair1/PHY/TOOLS/nr_phy_scope.h
View file @
903a1ec6
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include <simple_executable.h>
#include <simple_executable.h>
#include <common/utils/system.h>
#include <common/utils/system.h>
#include <openairinterface5g_limits.h>
#include <openairinterface5g_limits.h>
#include "LAYER2/NR_MAC_gNB/nr_mac_gNB.h"
#include "common/ran_context.h"
#include "common/ran_context.h"
#include <openair1/PHY/defs_gNB.h>
#include <openair1/PHY/defs_gNB.h>
#include <forms.h>
#include <forms.h>
...
...
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
903a1ec6
...
@@ -256,23 +256,6 @@ unsigned int gain_table[31] = {100,112,126,141,158,178,200,224,251,282,316,359,3
...
@@ -256,23 +256,6 @@ unsigned int gain_table[31] = {100,112,126,141,158,178,200,224,251,282,316,359,3
#if 0
#if 0
unsigned int get_tx_amp(int power_dBm, int power_max_dBm, int N_RB_UL, int nb_rb) // TbD
{
int gain_dB = power_dBm - power_max_dBm;
double gain_lin;
gain_lin = pow(10,.1*gain_dB);
if ((nb_rb >0) && (nb_rb <= N_RB_UL)) {
return((int)(AMP*sqrt(gain_lin*N_RB_UL/(double)nb_rb)));
}
else {
LOG_E(PHY,"Illegal nb_rb/N_RB_UL combination (%d/%d)\n",nb_rb,N_RB_UL);
//mac_xface->macphy_exit("");
}
return(0);
}
void nr_dump_dlsch_ra(PHY_VARS_NR_UE *ue,UE_nr_rxtx_proc_t *proc,uint8_t eNB_id,uint8_t nr_tti_rx)
void nr_dump_dlsch_ra(PHY_VARS_NR_UE *ue,UE_nr_rxtx_proc_t *proc,uint8_t eNB_id,uint8_t nr_tti_rx)
{
{
unsigned int coded_bits_per_codeword;
unsigned int coded_bits_per_codeword;
...
@@ -2329,8 +2312,6 @@ void phy_procedures_nrUE_TX(PHY_VARS_NR_UE *ue,
...
@@ -2329,8 +2312,6 @@ void phy_procedures_nrUE_TX(PHY_VARS_NR_UE *ue,
// check if we have PRACH opportunity
// check if we have PRACH opportunity
if
(
is_nr_prach_subframe
(
&
ue
->
frame_parms
,
frame_tx
,
slot_tx
))
{
if
(
is_nr_prach_subframe
(
&
ue
->
frame_parms
,
frame_tx
,
slot_tx
))
{
// TBR TODO FIX this works only for TDD but it enters phy_procedures_nrUE_TX only when mode is FDD
printf
(
" is_nr_prach_subframe is %d
\n
"
,
is_nr_prach_subframe
(
&
ue
->
frame_parms
,
frame_tx
,
slot_tx
));
// TBR debug
nr_ue_prach_procedures
(
ue
,
proc
,
gNB_id
,
mode
);
nr_ue_prach_procedures
(
ue
,
proc
,
gNB_id
,
mode
);
}
}
}
}
...
@@ -4579,7 +4560,7 @@ void nr_ue_prach_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
...
@@ -4579,7 +4560,7 @@ void nr_ue_prach_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
// if we're calibrating the PRACH kill the pointer to its resources so that the RA protocol doesn't continue
// if we're calibrating the PRACH kill the pointer to its resources so that the RA protocol doesn't continue
if
(
runmode
==
calib_prach_tx
)
if
(
runmode
==
calib_prach_tx
)
ue
->
prach_resources
[
gNB_id
]
=
NULL
;
ue
->
prach_resources
[
gNB_id
]
=
NULL
;
LOG_D
(
PHY
,
"[UE %d] frame %d nr_tti_rx %d : generate_nr_prach %d, prach_cnt %d
\n
"
,
ue
->
Mod_id
,
frame_tx
,
nr_tti_tx
,
ue
->
generate_nr_prach
,
ue
->
prach_cnt
);
LOG_D
(
PHY
,
"[UE %d] frame %d nr_tti_rx %d : generate_nr_prach %d, prach_cnt %d
\n
"
,
ue
->
Mod_id
,
frame_tx
,
nr_tti_tx
,
ue
->
generate_nr_prach
,
ue
->
prach_cnt
);
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
903a1ec6
...
@@ -44,6 +44,9 @@
...
@@ -44,6 +44,9 @@
/*TAG*/
/*TAG*/
#include "NR_TAG-Id.h"
#include "NR_TAG-Id.h"
////////////////////////////////////////////////////////
/////* DLSCH MAC PDU generation (6.1.2 TS 38.321) */////
////////////////////////////////////////////////////////
int
nr_generate_dlsch_pdu
(
module_id_t
module_idP
,
int
nr_generate_dlsch_pdu
(
module_id_t
module_idP
,
unsigned
char
*
sdus_payload
,
unsigned
char
*
sdus_payload
,
...
@@ -106,7 +109,6 @@ int nr_generate_dlsch_pdu(module_id_t module_idP,
...
@@ -106,7 +109,6 @@ int nr_generate_dlsch_pdu(module_id_t module_idP,
mac_pdu_ptr
+=
(
unsigned
char
)
mac_ce_size
;
mac_pdu_ptr
+=
(
unsigned
char
)
mac_ce_size
;
}
}
// Contention resolution fixed subheader and MAC CE
// Contention resolution fixed subheader and MAC CE
if
(
ue_cont_res_id
)
{
if
(
ue_cont_res_id
)
{
mac_pdu_ptr
->
R
=
0
;
mac_pdu_ptr
->
R
=
0
;
...
@@ -131,8 +133,7 @@ int nr_generate_dlsch_pdu(module_id_t module_idP,
...
@@ -131,8 +133,7 @@ int nr_generate_dlsch_pdu(module_id_t module_idP,
mac_pdu_ptr
+=
(
unsigned
char
)
mac_ce_size
;
mac_pdu_ptr
+=
(
unsigned
char
)
mac_ce_size
;
}
}
// 2) Generation of DLSCH MAC subPDUs including subheaders and MAC SDUs
// 2) Generation of DLSCH MAC SDU subheaders
for
(
i
=
0
;
i
<
num_sdus
;
i
++
)
{
for
(
i
=
0
;
i
<
num_sdus
;
i
++
)
{
LOG_D
(
MAC
,
"[gNB] Generate DLSCH header num sdu %d len sdu %d
\n
"
,
num_sdus
,
sdu_lengths
[
i
]);
LOG_D
(
MAC
,
"[gNB] Generate DLSCH header num sdu %d len sdu %d
\n
"
,
num_sdus
,
sdu_lengths
[
i
]);
...
...
openair2/RRC/NR/L2_nr_interface.c
View file @
903a1ec6
...
@@ -91,7 +91,7 @@ int8_t mac_rrc_nr_data_req(const module_id_t Mod_idP,
...
@@ -91,7 +91,7 @@ int8_t mac_rrc_nr_data_req(const module_id_t Mod_idP,
/* TODO BCCH SIB1 SIBs */
/* TODO BCCH SIB1 SIBs */
/* CCCH */
// TBR lte code
/* CCCH */
if
(
(
Srb_id
&
RAB_OFFSET
)
==
CCCH
)
{
if
(
(
Srb_id
&
RAB_OFFSET
)
==
CCCH
)
{
//struct rrc_eNB_ue_context_s *ue_context_p = rrc_eNB_get_ue_context(RC.rrc[Mod_idP],rnti);
//struct rrc_eNB_ue_context_s *ue_context_p = rrc_eNB_get_ue_context(RC.rrc[Mod_idP],rnti);
//if (ue_context_p == NULL) return(0);
//if (ue_context_p == NULL) return(0);
...
...
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