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
alex037yang
OpenXG-RAN
Commits
9e6b6ef9
Commit
9e6b6ef9
authored
Feb 11, 2020
by
matzakos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nr-ip-ul-nos1: Remove warnings
parent
69721198
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
13 deletions
+11
-13
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+0
-1
openair1/PHY/NR_UE_TRANSPORT/nr_transport_proto_ue.h
openair1/PHY/NR_UE_TRANSPORT/nr_transport_proto_ue.h
+1
-1
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
+4
-4
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+1
-2
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+4
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
+1
-1
No files found.
cmake_targets/CMakeLists.txt
View file @
9e6b6ef9
...
...
@@ -1723,7 +1723,6 @@ set(NR_L2_SRC_UE
${
NR_UE_RRC_DIR
}
/L2_interface_ue.c
${
NR_UE_RRC_DIR
}
/main_ue.c
${
NR_UE_RRC_DIR
}
/rrc_UE.c
${
LTE_RLC_SRC
}
)
set
(
MAC_SRC
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_transport_proto_ue.h
View file @
9e6b6ef9
...
...
@@ -1076,7 +1076,7 @@ void nr_pusch_codeword_scrambling(uint8_t *in,
- transform precoding
*/
uint8_t
nr_ue_ulsch_procedures
(
PHY_VARS_NR_UE
*
UE
,
void
nr_ue_ulsch_procedures
(
PHY_VARS_NR_UE
*
UE
,
unsigned
char
harq_pid
,
uint8_t
frame
,
uint8_t
slot
,
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
View file @
9e6b6ef9
...
...
@@ -42,6 +42,7 @@
#include "PHY/defs_nr_common.h"
#include "PHY/TOOLS/tools_defs.h"
#include "executables/nr-softmodem.h"
#include "LAYER2/NR_MAC_UE/mac_proto.h"
//#define DEBUG_SCFDMA
//#define DEBUG_PUSCH_MAPPING
...
...
@@ -88,7 +89,7 @@ void nr_pusch_codeword_scrambling(uint8_t *in,
}
uint8_t
nr_ue_ulsch_procedures
(
PHY_VARS_NR_UE
*
UE
,
void
nr_ue_ulsch_procedures
(
PHY_VARS_NR_UE
*
UE
,
unsigned
char
harq_pid
,
uint8_t
frame
,
uint8_t
slot
,
...
...
@@ -205,7 +206,7 @@ uint8_t nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
}
//else if(uplink_counter == 0){ //if(!IS_SOFTMODEM_NOS1){
else
{
LOG_
E
(
PHY
,
"Random data to be tranmsitted:
\n
"
);
LOG_
D
(
PHY
,
"Random data to be tranmsitted:
\n
"
);
for
(
i
=
0
;
i
<
harq_process_ul_ue
->
TBS
/
8
;
i
++
)
{
harq_process_ul_ue
->
a
[
i
]
=
(
unsigned
char
)
rand
();
//printf(" input encoder a[%d]=0x%02x\n",i,harq_process_ul_ue->a[i]);
...
...
@@ -214,7 +215,7 @@ uint8_t nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
}
}
else
{
LOG_E
(
PHY
,
"[phy_procedures_nrUE_TX] harq_process_ul_ue is NULL !!
\n
"
);
return
0
;
return
;
}
//-----------------------------------------------------//
...
...
@@ -427,7 +428,6 @@ uint8_t nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
////////////////////////////////////////////////////////////////////////
LOG_D
(
PHY
,
"Is data existing ?: %d
\n
"
,
data_existing
);
return
data_existing
;
}
...
...
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
9e6b6ef9
...
...
@@ -2483,9 +2483,8 @@ void phy_procedures_nrUE_TX(PHY_VARS_NR_UE *ue,
#endif
uint8_t
harq_pid
=
0
;
//temporary implementation
uint8_t
data_existing
=
0
;
data_existing
=
nr_ue_ulsch_procedures
(
ue
,
nr_ue_ulsch_procedures
(
ue
,
harq_pid
,
frame_tx
,
slot_tx
,
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
9e6b6ef9
...
...
@@ -43,6 +43,7 @@
#include <stdio.h>
#include <math.h>
//int mbms_rab_id = 2047;
//#define ENABLE_MAC_PAYLOAD_DEBUG 1
...
...
@@ -2482,7 +2483,7 @@ uint8_t
nr_ue_get_sdu
(
module_id_t
module_idP
,
int
CC_id
,
frame_t
frameP
,
sub_frame_t
subframe
,
uint8_t
eNB_index
,
uint8_t
*
ulsch_buffer
,
uint16_t
buflen
,
uint8_t
*
access_mode
)
{
uint8_t
total_rlc_pdu_header_len
=
0
,
rlc_pdu_header_len_last
=
0
;
uint8_t
total_rlc_pdu_header_len
=
0
;
int16_t
buflen_remain
=
0
;
uint8_t
lcid
=
0
;
uint16_t
sdu_lengths
[
8
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
...
...
@@ -2490,8 +2491,7 @@ nr_ue_get_sdu(module_id_t module_idP, int CC_id, frame_t frameP,
uint16_t
payload_offset
=
0
,
num_sdus
=
0
;
uint8_t
ulsch_sdus
[
MAX_ULSCH_PAYLOAD_BYTES
];
uint16_t
sdu_length_total
=
0
;
unsigned
short
post_padding
=
0
,
padding_len
=
0
;
int
j
;
// used for padding
unsigned
short
post_padding
=
0
;
rlc_buffer_occupancy_t
lcid_buffer_occupancy_old
=
0
,
lcid_buffer_occupancy_new
=
0
;
...
...
@@ -2504,7 +2504,7 @@ nr_ue_get_sdu(module_id_t module_idP, int CC_id, frame_t frameP,
start_meas
(
&
UE_mac_inst
[
module_idP
].
tx_ulsch_sdu
);
#endif
NR_UE_MAC_INST_t
*
nr_ue_mac_inst
=
get_mac_inst
(
0
);
//
NR_UE_MAC_INST_t *nr_ue_mac_inst = get_mac_inst(0);
// Check for DCCH first
// TO DO: Multiplex in the order defined by the logical channel prioritization
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
View file @
9e6b6ef9
...
...
@@ -561,7 +561,7 @@ void nr_process_mac_pdu(
// This function is adapting code from the old
// parse_header(...) and ue_send_sdu(...) functions of OAI LTE
uint8_t
*
pdu_ptr
=
pduP
,
rx_lcid
,
done
=
0
,
i
;
uint8_t
*
pdu_ptr
=
pduP
,
rx_lcid
,
done
=
0
;
int
pdu_len
=
mac_pdu_len
;
uint16_t
mac_ce_len
,
mac_subheader_len
,
mac_sdu_len
;
...
...
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