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
Michael Black
OpenXG-RAN
Commits
2403529e
Commit
2403529e
authored
Jan 22, 2018
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issues related to PC5D transmission/reception
parent
dd3ed7a5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
openair2/LAYER2/MAC/ue_procedures.c
openair2/LAYER2/MAC/ue_procedures.c
+5
-3
openair2/RRC/LITE/L2_interface.c
openair2/RRC/LITE/L2_interface.c
+1
-0
openair2/RRC/LITE/rrc_UE.c
openair2/RRC/LITE/rrc_UE.c
+9
-4
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+1
-1
No files found.
openair2/LAYER2/MAC/ue_procedures.c
View file @
2403529e
...
...
@@ -797,9 +797,11 @@ void ue_send_sl_sdu(module_id_t module_idP,
NULL
);
}
else
{
//SL_DISCOVERY
LOG_I
(
MAC
,
"SL DISCOVERY
\n
"
);
//call mac_rrc_data_ind
uint16_t
len
;
//call mac_rrc_data_ind
uint16_t
len
=
sdu_len
;
printf
(
"SL DISCOVERY: "
);
for
(
int
i
=
0
;
i
<
len
;
i
++
)
printf
(
"%x "
,((
uint8_t
*
)
sdu
)[
i
]);
printf
(
"
\n
"
);
mac_rrc_data_ind
(
module_idP
,
CC_id
,
frameP
,
subframeP
,
...
...
openair2/RRC/LITE/L2_interface.c
View file @
2403529e
...
...
@@ -515,6 +515,7 @@ mac_rrc_data_ind(
//TTN (for D2D)
if
(
srb_idP
==
SL_DISCOVERY
)
{
LOG_I
(
RRC
,
"[UE %d] Received SDU (%d bytes) for SL_DISCOVERY on SRB %d from eNB %d
\n
"
,
module_idP
,
sdu_lenP
,
srb_idP
,
eNB_indexP
);
decode_SL_Discovery_Message
(
&
ctxt
,
eNB_indexP
,
sduP
,
sdu_lenP
);
}
...
...
openair2/RRC/LITE/rrc_UE.c
View file @
2403529e
...
...
@@ -5837,7 +5837,9 @@ int decode_SL_Discovery_Message(
int
prose_addr_len
;
char
send_buf
[
BUFSIZE
];
int
n
;
struct
sidelink_ctrl_element
*
sl_ctrl_msg_recv
=
NULL
;
LOG_I
(
RRC
,
"[decode_SL_Discovery_Message] received %d bytes (sizeof(struct sidelink_ctrl_element) %d)
\n
"
,
Sdu_len
,
sizeof
(
struct
sidelink_ctrl_element
));
//from the main program, listen for the incoming messages from control socket (ProSe App)
prose_addr_len
=
sizeof
(
prose_app_addr
);
...
...
@@ -5845,18 +5847,21 @@ int decode_SL_Discovery_Message(
memcpy
((
void
*
)
&
UE_rrc_inst
[
ctxt_pP
->
module_id
].
SL_Discovery
[
0
].
Rx_buffer
.
Payload
[
0
],
(
void
*
)
Sdu
,
Sdu_len
);
UE_rrc_inst
[
ctxt_pP
->
module_id
].
SL_Discovery
[
0
].
Rx_buffer
.
payload_size
=
Sdu_len
;
sl_ctrl_msg_recv
=
calloc
(
1
,
sizeof
(
struct
sidelink_ctrl_element
));
memcpy
((
void
*
)
sl_ctrl_msg_recv
,
(
void
*
)
Sdu
,
sizeof
(
struct
sidelink_ctrl_element
));
LOG_I
(
RRC
,
"[decode_SL_Discovery_Message] Message type %d
\n
"
,
sl_ctrl_msg_recv
->
type
);
memset
(
send_buf
,
0
,
BUFSIZE
);
//send to ProSeApp
memcpy
((
void
*
)
send_buf
,
(
void
*
)
Sdu
,
Sdu_len
);
prose_addr_len
=
sizeof
(
prose_app_addr
);
n
=
sendto
(
ctrl_sock_fd
,
(
char
*
)
send_buf
,
Sdu_len
,
0
,
(
struct
sockaddr
*
)
&
prose_app_addr
,
prose_addr_len
);
// free(sl_ctrl_msg_send);
if
(
n
<
0
){
LOG_E
(
RRC
,
"ERROR: Failed to send to ProSe App
\n
"
);
exit
(
EXIT_FAILURE
);
//
exit(EXIT_FAILURE);
}
free
(
sl_ctrl_msg_recv
);
return
(
0
);
}
...
...
targets/RT/USER/lte-ue.c
View file @
2403529e
...
...
@@ -805,7 +805,7 @@ void ue_stub_rx_handler(unsigned int num_bytes, char *rx_buffer) {
0
,
pdu
->
header
.
absSF
/
10
,
pdu
->
header
.
absSF
%
10
,
pdu
->
payload
,
sldch
->
payload
,
sldch
->
payload_length
,
0
,
SL_DISCOVERY_FLAG_YES
);
...
...
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