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
dd3ed7a5
Commit
dd3ed7a5
authored
Jan 22, 2018
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor update PC5DiscoveryAnnouncement -> PC5DiscoveryMessage
parent
ad2da99d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
openair2/RRC/LITE/defs.h
openair2/RRC/LITE/defs.h
+4
-4
openair2/RRC/LITE/rrc_UE.c
openair2/RRC/LITE/rrc_UE.c
+6
-6
No files found.
openair2/RRC/LITE/defs.h
View file @
dd3ed7a5
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
#define GROUP_COMMUNICATION_RELEASE_RSP 8
#define GROUP_COMMUNICATION_RELEASE_RSP 8
#define PC5S_ESTABLISH_REQ 9
#define PC5S_ESTABLISH_REQ 9
#define PC5S_ESTABLISH_RSP 10
#define PC5S_ESTABLISH_RSP 10
#define PC5_DISCOVERY_
ANNOUNCEMENT
11
#define PC5_DISCOVERY_
MESSAGE
11
typedef
enum
{
typedef
enum
{
...
@@ -132,10 +132,10 @@ struct PC5SEstablishRsp{
...
@@ -132,10 +132,10 @@ struct PC5SEstablishRsp{
uint8_t
status
;
uint8_t
status
;
};
};
//example of PC5_DSICOVERY
ANNOUNCEMENT
(for testing only)
//example of PC5_DSICOVERY
MESSAGE
(for testing only)
typedef
struct
{
typedef
struct
{
unsigned
char
bytes
[
29
];
unsigned
char
bytes
[
29
];
}
__attribute__
((
__packed__
))
PC5Discovery
Announcement
;
}
__attribute__
((
__packed__
))
PC5Discovery
Message
;
struct
sidelink_ctrl_element
{
struct
sidelink_ctrl_element
{
...
@@ -149,7 +149,7 @@ struct sidelink_ctrl_element {
...
@@ -149,7 +149,7 @@ struct sidelink_ctrl_element {
int
slrb_id
;
int
slrb_id
;
struct
PC5SEstablishReq
pc5s_establish_req
;
struct
PC5SEstablishReq
pc5s_establish_req
;
struct
PC5SEstablishRsp
pc5s_establish_rsp
;
struct
PC5SEstablishRsp
pc5s_establish_rsp
;
PC5Discovery
Announcement
pc5_discovery_announcement
;
PC5Discovery
Message
pc5_discovery_message
;
}
sidelinkPrimitive
;
}
sidelinkPrimitive
;
};
};
...
...
openair2/RRC/LITE/rrc_UE.c
View file @
dd3ed7a5
...
@@ -5802,19 +5802,19 @@ void *rrc_control_socket_thread_fct(void *arg)
...
@@ -5802,19 +5802,19 @@ void *rrc_control_socket_thread_fct(void *arg)
break
;
break
;
case
PC5_DISCOVERY_
ANNOUNCEMENT
:
case
PC5_DISCOVERY_
MESSAGE
:
#ifdef DEBUG_CTRL_SOCKET
#ifdef DEBUG_CTRL_SOCKET
LOG_I
(
RRC
,
"[PC5Discovery
Announcement
] Received on socket from ProSe App (msg type: %d)
\n
"
,
sl_ctrl_msg_recv
->
type
);
LOG_I
(
RRC
,
"[PC5Discovery
Message
] Received on socket from ProSe App (msg type: %d)
\n
"
,
sl_ctrl_msg_recv
->
type
);
// LOG_I(RRC,"[PC5Discovery
Announcement] type: %d\n",sl_ctrl_msg_recv->sidelinkPrimitive.pc5_discovery_announcement
.msg_type);
// LOG_I(RRC,"[PC5Discovery
Message] type: %d\n",sl_ctrl_msg_recv->sidelinkPrimitive.pc5_discovery_message
.msg_type);
// LOG_D(RRC,"[PC5Discovery
Announcement] discoveryGroupId: 0x%08x\n",sl_ctrl_msg_recv->sidelinkPrimitive.pc5_discovery_announcement
.discoveryGroupId);
// LOG_D(RRC,"[PC5Discovery
Message] discoveryGroupId: 0x%08x\n",sl_ctrl_msg_recv->sidelinkPrimitive.pc5_discovery_message
.discoveryGroupId);
// LOG_D(RRC,"[PC5Discovery
Announcement] proSeUEId: 0x%08x\n",sl_ctrl_msg_recv->sidelinkPrimitive.pc5_discovery_announcement
.proSeUEId);
// LOG_D(RRC,"[PC5Discovery
Message] proSeUEId: 0x%08x\n",sl_ctrl_msg_recv->sidelinkPrimitive.pc5_discovery_message
.proSeUEId);
#endif
#endif
//prepare SL_Discovery buffer
//prepare SL_Discovery buffer
if
(
UE_rrc_inst
)
{
if
(
UE_rrc_inst
)
{
memcpy
((
void
*
)
&
UE_rrc_inst
[
module_id
].
SL_Discovery
[
0
].
Tx_buffer
.
Payload
[
0
],
(
void
*
)
receive_buf
,
n
);
memcpy
((
void
*
)
&
UE_rrc_inst
[
module_id
].
SL_Discovery
[
0
].
Tx_buffer
.
Payload
[
0
],
(
void
*
)
receive_buf
,
n
);
UE_rrc_inst
[
module_id
].
SL_Discovery
[
0
].
Tx_buffer
.
payload_size
=
n
;
UE_rrc_inst
[
module_id
].
SL_Discovery
[
0
].
Tx_buffer
.
payload_size
=
n
;
LOG_I
(
RRC
,
"[PC5Discovery
Announcement
] Copied %d bytes
\n
"
,
n
);
LOG_I
(
RRC
,
"[PC5Discovery
Message
] Copied %d bytes
\n
"
,
n
);
}
}
break
;
break
;
default:
default:
...
...
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