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
bc5781aa
Commit
bc5781aa
authored
Apr 16, 2018
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor update
parent
7106aa92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
openair2/LAYER2/MAC/config.c
openair2/LAYER2/MAC/config.c
+2
-2
openair2/LAYER2/MAC/ue_procedures.c
openair2/LAYER2/MAC/ue_procedures.c
+7
-4
openair2/RRC/LITE/rrc_UE.c
openair2/RRC/LITE/rrc_UE.c
+1
-1
No files found.
openair2/LAYER2/MAC/config.c
View file @
bc5781aa
...
@@ -1427,10 +1427,10 @@ rrc_mac_config_req_ue(
...
@@ -1427,10 +1427,10 @@ rrc_mac_config_req_ue(
}
}
}
else
if
((
logicalChannelIdentity
>=
MAX_NUM_LCID_DATA
)
&&
(
logicalChannelIdentity
<
MAX_NUM_LCID
))
{
}
else
if
((
logicalChannelIdentity
>=
MAX_NUM_LCID_DATA
)
&&
(
logicalChannelIdentity
<
MAX_NUM_LCID
))
{
// if (destinationL2Id){
// if (destinationL2Id){
LOG_I
(
MAC
,
"[UE %d] Configure
destination L2Id 0x%08x for PC5S
\n
"
,
Mod_idP
,
*
destinationL2Id
);
LOG_I
(
MAC
,
"[UE %d] Configure
LCID %d for PC5S
\n
"
,
Mod_idP
,
logicalChannelIdentity
);
j
=
0
;
j
=
0
;
k
=
0
;
k
=
0
;
for
(
k
=
MAX_NUM_LCID_DATA
;
k
<
MAX_NUM_LCID
;
k
++
)
{
for
(
k
=
MAX_NUM_LCID_DATA
;
k
<
MAX_NUM_LCID
;
k
++
)
{
if
((
UE_mac_inst
[
Mod_idP
].
sl_info
[
k
].
LCID
==
0
)
&&
(
j
==
0
))
j
=
k
+
1
;
if
((
UE_mac_inst
[
Mod_idP
].
sl_info
[
k
].
LCID
==
0
)
&&
(
j
==
0
))
j
=
k
+
1
;
if
((
UE_mac_inst
[
Mod_idP
].
sl_info
[
k
].
LCID
==
logicalChannelIdentity
))
break
;
if
((
UE_mac_inst
[
Mod_idP
].
sl_info
[
k
].
LCID
==
logicalChannelIdentity
))
break
;
//&& (UE_mac_inst[Mod_idP].sl_info[k].destinationL2Id == *destinationL2Id)) break; //(LCID, D) already exists!
//&& (UE_mac_inst[Mod_idP].sl_info[k].destinationL2Id == *destinationL2Id)) break; //(LCID, D) already exists!
...
...
openair2/LAYER2/MAC/ue_procedures.c
View file @
bc5781aa
...
@@ -771,19 +771,19 @@ void ue_send_sl_sdu(module_id_t module_idP,
...
@@ -771,19 +771,19 @@ void ue_send_sl_sdu(module_id_t module_idP,
//filter incoming packet based on destination address
//filter incoming packet based on destination address
destinationL2Id
=
(
longh
->
DST07
<<
16
)
|
(
longh
->
DST815
<<
8
)
|
(
longh
->
DST1623
);
destinationL2Id
=
(
longh
->
DST07
<<
16
)
|
(
longh
->
DST815
<<
8
)
|
(
longh
->
DST1623
);
sourceL2Id
=
(
longh
->
SRC07
<<
16
)
|
(
longh
->
SRC815
<<
8
)
|
(
longh
->
SRC1623
);
sourceL2Id
=
(
longh
->
SRC07
<<
16
)
|
(
longh
->
SRC815
<<
8
)
|
(
longh
->
SRC1623
);
LOG_D
(
MAC
,
"[DestinationL2Id: 0x%08x]
\n
"
,
destinationL2Id
);
//in case of 1-n communication, verify that UE belongs to that group
//in case of 1-n communication, verify that UE belongs to that group
int
i
=
0
;
int
i
=
0
;
int
j
=
0
;
int
j
=
0
;
for
(
i
=
0
;
i
<
MAX_NUM_LCID
;
i
++
)
for
(
i
=
0
;
i
<
MAX_NUM_LCID
;
i
++
)
if
(
UE_mac_inst
[
module_idP
].
sl_info
[
i
].
groupL2Id
==
destinationL2Id
)
{
if
(
(
UE_mac_inst
[
module_idP
].
sl_info
[
i
].
groupL2Id
==
destinationL2Id
)
&&
(
UE_mac_inst
[
module_idP
].
sl_info
[
i
].
sourceL2Id
!=
sourceL2Id
)
)
{
lcid
=
UE_mac_inst
[
module_idP
].
sl_info
[
i
].
LCID
;
lcid
=
UE_mac_inst
[
module_idP
].
sl_info
[
i
].
LCID
;
break
;
break
;
}
}
for
(
j
=
0
;
j
<
MAX_NUM_LCID
;
j
++
){
for
(
j
=
0
;
j
<
MAX_NUM_LCID
;
j
++
){
if
((
longh
->
LCID
<
MAX_NUM_LCID_DATA
)
&&
(
j
<
MAX_NUM_LCID_DATA
)){
if
((
longh
->
LCID
<
MAX_NUM_LCID_DATA
)
&&
(
j
<
MAX_NUM_LCID_DATA
)){
if
(
UE_mac_inst
[
module_idP
].
sl_info
[
j
].
destinationL2Id
==
sourceL2Id
)
{
if
(
(
UE_mac_inst
[
module_idP
].
sl_info
[
j
].
destinationL2Id
==
sourceL2Id
)
&&
(
UE_mac_inst
[
module_idP
].
sl_info
[
j
].
sourceL2Id
==
destinationL2Id
)
)
{
lcid
=
UE_mac_inst
[
module_idP
].
sl_info
[
j
].
LCID
;
lcid
=
UE_mac_inst
[
module_idP
].
sl_info
[
j
].
LCID
;
break
;
break
;
}
}
...
@@ -808,6 +808,9 @@ void ue_send_sl_sdu(module_id_t module_idP,
...
@@ -808,6 +808,9 @@ void ue_send_sl_sdu(module_id_t module_idP,
return
;
return
;
}
}
LOG_I
(
MAC
,
"[longh->LCID %d]
\n
"
,
longh
->
LCID
);
LOG_I
(
MAC
,
"[DestinationL2Id: 0x%08x, sl_rbid %d]
\n
"
,
destinationL2Id
,
lcid
);
if
(
longh
->
F
==
1
)
{
if
(
longh
->
F
==
1
)
{
rlc_sdu_len
=
((
longh
->
L_MSB
<<
8
)
&
0x7F00
)
|
(
longh
->
L_LSB
&
0xFF
);
rlc_sdu_len
=
((
longh
->
L_MSB
<<
8
)
&
0x7F00
)
|
(
longh
->
L_LSB
&
0xFF
);
...
@@ -824,7 +827,7 @@ void ue_send_sl_sdu(module_id_t module_idP,
...
@@ -824,7 +827,7 @@ void ue_send_sl_sdu(module_id_t module_idP,
frameP
,
frameP
,
ENB_FLAG_NO
,
ENB_FLAG_NO
,
MBMS_FLAG_NO
,
MBMS_FLAG_NO
,
l
ongh
->
LCID
,
//3/10
l
cid
,
//3/10
rlc_sdu
,
rlc_sdu
,
rlc_sdu_len
,
rlc_sdu_len
,
1
,
1
,
...
...
openair2/RRC/LITE/rrc_UE.c
View file @
bc5781aa
...
@@ -6091,7 +6091,7 @@ void *rrc_control_socket_thread_fct(void *arg)
...
@@ -6091,7 +6091,7 @@ void *rrc_control_socket_thread_fct(void *arg)
case
PC5S_ESTABLISH_REQ
:
case
PC5S_ESTABLISH_REQ
:
type
=
sl_ctrl_msg_recv
->
sidelinkPrimitive
.
pc5s_establish_req
.
type
;
type
=
sl_ctrl_msg_recv
->
sidelinkPrimitive
.
pc5s_establish_req
.
type
;
sourceL2Id
=
sl_ctrl_msg_recv
->
sidelinkPrimitive
.
pc5s_establish_req
.
sourceL2Id
;
sourceL2Id
=
sl_ctrl_msg_recv
->
sidelinkPrimitive
.
pc5s_establish_req
.
sourceL2Id
;
int
pc5s_rbid
=
0
;
int
pc5s_rbid
=
MAX_NUM_LCID_DATA
;
#ifdef DEBUG_CTRL_SOCKET
#ifdef DEBUG_CTRL_SOCKET
LOG_I
(
RRC
,
"[PC5EstablishReq] Received on socket from ProSe App (msg type: %d)
\n
"
,
sl_ctrl_msg_recv
->
type
);
LOG_I
(
RRC
,
"[PC5EstablishReq] Received on socket from ProSe App (msg type: %d)
\n
"
,
sl_ctrl_msg_recv
->
type
);
LOG_I
(
RRC
,
"[PC5EstablishReq] type: %d
\n
"
,
sl_ctrl_msg_recv
->
sidelinkPrimitive
.
pc5s_establish_req
.
type
);
//RX/TX
LOG_I
(
RRC
,
"[PC5EstablishReq] type: %d
\n
"
,
sl_ctrl_msg_recv
->
sidelinkPrimitive
.
pc5s_establish_req
.
type
);
//RX/TX
...
...
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