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
lizhongxiao
OpenXG-RAN
Commits
59d527c9
Commit
59d527c9
authored
Jul 13, 2018
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'l1-sidelink' of
https://gitlab.eurecom.fr/matzakos/LTE-D2D
into l1-sidelink
parents
59fd807a
d795f85f
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
39 deletions
+50
-39
openair1/PHY/LTE_TRANSPORT/slsch.c
openair1/PHY/LTE_TRANSPORT/slsch.c
+38
-25
openair1/PHY/LTE_TRANSPORT/slss.c
openair1/PHY/LTE_TRANSPORT/slss.c
+2
-2
openair1/SCHED/phy_procedures_lte_ue.c
openair1/SCHED/phy_procedures_lte_ue.c
+9
-3
openair2/LAYER2/MAC/ue_procedures.c
openair2/LAYER2/MAC/ue_procedures.c
+1
-9
No files found.
openair1/PHY/LTE_TRANSPORT/slsch.c
View file @
59d527c9
This diff is collapsed.
Click to expand it.
openair1/PHY/LTE_TRANSPORT/slss.c
View file @
59d527c9
...
@@ -77,7 +77,7 @@ void check_and_generate_slss(PHY_VARS_UE *ue,int frame_tx,int subframe_tx) {
...
@@ -77,7 +77,7 @@ void check_and_generate_slss(PHY_VARS_UE *ue,int frame_tx,int subframe_tx) {
if
(
ue
->
generate_ul_signal
[
subframe_tx
][
0
]
==
0
)
if
(
ue
->
generate_ul_signal
[
subframe_tx
][
0
]
==
0
)
for
(
int
aa
=
0
;
aa
<
ue
->
frame_parms
.
nb_antennas_tx
;
aa
++
)
{
for
(
int
aa
=
0
;
aa
<
ue
->
frame_parms
.
nb_antennas_tx
;
aa
++
)
{
LOG_
I
(
PHY
,
"%d.%d: clearing ul signal
\n
"
,
frame_tx
,
subframe_tx
);
LOG_
D
(
PHY
,
"%d.%d: clearing ul signal
\n
"
,
frame_tx
,
subframe_tx
);
memset
(
&
ue
->
common_vars
.
txdataF
[
aa
][
subframe_tx
*
ue
->
frame_parms
.
ofdm_symbol_size
*
ue
->
frame_parms
.
symbols_per_tti
],
memset
(
&
ue
->
common_vars
.
txdataF
[
aa
][
subframe_tx
*
ue
->
frame_parms
.
ofdm_symbol_size
*
ue
->
frame_parms
.
symbols_per_tti
],
0
,
0
,
ue
->
frame_parms
.
ofdm_symbol_size
*
ue
->
frame_parms
.
symbols_per_tti
*
sizeof
(
int32_t
));
ue
->
frame_parms
.
ofdm_symbol_size
*
ue
->
frame_parms
.
symbols_per_tti
*
sizeof
(
int32_t
));
...
@@ -133,7 +133,7 @@ void check_and_generate_slss(PHY_VARS_UE *ue,int frame_tx,int subframe_tx) {
...
@@ -133,7 +133,7 @@ void check_and_generate_slss(PHY_VARS_UE *ue,int frame_tx,int subframe_tx) {
0
);
0
);
LOG_
I
(
PHY
,
"%d.%d : SLSS nbrb %d, first rb %d
\n
"
,
frame_tx
,
subframe_tx
,
6
,(
ue
->
frame_parms
.
N_RB_UL
/
2
)
-
3
);
LOG_
D
(
PHY
,
"%d.%d : SLSS nbrb %d, first rb %d
\n
"
,
frame_tx
,
subframe_tx
,
6
,(
ue
->
frame_parms
.
N_RB_UL
/
2
)
-
3
);
ue
->
generate_ul_signal
[
subframe_tx
][
0
]
=
1
;
ue
->
generate_ul_signal
[
subframe_tx
][
0
]
=
1
;
ue
->
slss_generated
=
1
;
ue
->
slss_generated
=
1
;
...
...
openair1/SCHED/phy_procedures_lte_ue.c
View file @
59d527c9
...
@@ -2398,8 +2398,11 @@ void phy_procedures_UE_SL_TX(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc) {
...
@@ -2398,8 +2398,11 @@ void phy_procedures_UE_SL_TX(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc) {
}
}
if
(
frame_tx
==
0
&&
subframe_tx
==
0
)
if
(
frame_tx
==
0
&&
subframe_tx
==
0
)
for
(
int
i
=
0
;
i
<
MAX_SLDCH
;
i
++
)
if
(
ue
->
sldch_txcnt
[
i
]
>
0
)
LOG_I
(
PHY
,
"n_psdch %d TX count %d
\n
"
,
i
,
ue
->
sldch_txcnt
[
i
]);
for
(
int
i
=
0
;
i
<
MAX_SLDCH
;
i
++
)
if
(
ue
->
sldch_txcnt
[
i
]
>
0
)
LOG_I
(
PHY
,
"n_psdch %d TX count %d
\n
"
,
i
,
ue
->
sldch_txcnt
[
i
]);
}
}
void
phy_procedures_UE_TX
(
PHY_VARS_UE
*
ue
,
UE_rxtx_proc_t
*
proc
,
uint8_t
eNB_id
,
uint8_t
abstraction_flag
,
runmode_t
mode
,
relaying_type_t
r_type
)
{
void
phy_procedures_UE_TX
(
PHY_VARS_UE
*
ue
,
UE_rxtx_proc_t
*
proc
,
uint8_t
eNB_id
,
uint8_t
abstraction_flag
,
runmode_t
mode
,
relaying_type_t
r_type
)
{
...
@@ -4797,12 +4800,15 @@ void phy_procedures_UE_SL_RX(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc) {
...
@@ -4797,12 +4800,15 @@ void phy_procedures_UE_SL_RX(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc) {
if
(
ue
->
is_SynchRef
==
0
&&
frame_rx
==
0
&&
subframe_rx
==
0
)
LOG_I
(
PHY
,
"Connected with SyncRef UE (slbch errors %d/%d)
\n
"
,
if
(
ue
->
is_SynchRef
==
0
&&
frame_rx
==
0
&&
subframe_rx
==
0
)
LOG_I
(
PHY
,
"Connected with SyncRef UE (slbch errors %d/%d)
\n
"
,
ue
->
slbch_errors
,
ue
->
slbch_rxops
);
ue
->
slbch_errors
,
ue
->
slbch_rxops
);
if
(
frame_rx
==
0
&&
subframe_rx
==
0
)
for
(
int
i
=
0
;
i
<
MAX_SLDCH
;
i
++
)
if
(
ue
->
sldch_rxcnt
[
i
]
>
0
)
LOG_I
(
PHY
,
"n_psdch %d RX count %d
\n
"
,
i
,
ue
->
sldch_rxcnt
[
i
]);
rx_slcch
(
ue
,
proc
,
frame_rx
,
subframe_rx
);
rx_slcch
(
ue
,
proc
,
frame_rx
,
subframe_rx
);
rx_slsch
(
ue
,
proc
,
frame_rx
,
subframe_rx
);
rx_slsch
(
ue
,
proc
,
frame_rx
,
subframe_rx
);
if
(
frame_rx
==
0
&&
subframe_rx
==
0
)
{
for
(
int
i
=
0
;
i
<
MAX_SLDCH
;
i
++
)
if
(
ue
->
sldch_rxcnt
[
i
]
>
0
)
LOG_I
(
PHY
,
"n_psdch %d RX count %d
\n
"
,
i
,
ue
->
sldch_rxcnt
[
i
]);
for
(
int
i
=
0
;
i
<
4
;
i
++
)
if
(
ue
->
slsch_rxcnt
[
i
]
>
0
)
LOG_I
(
PHY
,
"n_pssch[%d] rx count %d
\n
"
,
i
,
ue
->
slsch_rxcnt
[
i
]);
}
}
}
int
phy_procedures_UE_RX
(
PHY_VARS_UE
*
ue
,
UE_rxtx_proc_t
*
proc
,
uint8_t
eNB_id
,
int
phy_procedures_UE_RX
(
PHY_VARS_UE
*
ue
,
UE_rxtx_proc_t
*
proc
,
uint8_t
eNB_id
,
...
...
openair2/LAYER2/MAC/ue_procedures.c
View file @
59d527c9
...
@@ -3420,15 +3420,6 @@ SLSCH_t *ue_get_slsch(module_id_t module_idP,int CC_id,frame_t frameP,sub_frame_
...
@@ -3420,15 +3420,6 @@ SLSCH_t *ue_get_slsch(module_id_t module_idP,int CC_id,frame_t frameP,sub_frame_
}
}
*/
*/
const
int
prblist
[
6
]
=
{
6
,
15
,
25
,
50
,
75
,
100
};
int
to_prb
(
int
sl_Bandwidth_r12
)
{
AssertFatal
(
sl_Bandwidth_r12
<
6
,
"illegal bandwidth index %d
\n
"
,
sl_Bandwidth_r12
);
return
(
prblist
[
sl_Bandwidth_r12
]);
}
extern
const
int
trp8
[
TRP8_MAX
+
1
][
8
];
extern
const
int
trp8
[
TRP8_MAX
+
1
][
8
];
SLSCH_t
*
ue_get_slsch
(
module_id_t
module_idP
,
int
CC_id
,
frame_t
frameP
,
sub_frame_t
subframeP
,
int
slsch_test
)
{
SLSCH_t
*
ue_get_slsch
(
module_id_t
module_idP
,
int
CC_id
,
frame_t
frameP
,
sub_frame_t
subframeP
,
int
slsch_test
)
{
...
@@ -3504,6 +3495,7 @@ SLSCH_t *ue_get_slsch(module_id_t module_idP,int CC_id,frame_t frameP,sub_frame_
...
@@ -3504,6 +3495,7 @@ SLSCH_t *ue_get_slsch(module_id_t module_idP,int CC_id,frame_t frameP,sub_frame_
}
}
if
(
ue
->
sltx_active
==
0
)
return
((
SLSCH_t
*
)
NULL
);
if
(
ue
->
sltx_active
==
0
)
return
((
SLSCH_t
*
)
NULL
);
slsch
->
ljmod10
=
9
;
// note this will cause ljmod10 to be reset for first transmission of SLSCH
slsch
->
ljmod10
=
9
;
// note this will cause ljmod10 to be reset for first transmission of SLSCH
slsch
->
rvidx
=
1
;
slsch
->
rvidx
=
1
;
slsch
->
RB_start
=
RB_start
;
slsch
->
RB_start
=
RB_start
;
...
...
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