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
165f0f94
Commit
165f0f94
authored
May 09, 2018
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor update
parent
d5192ae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
20 deletions
+26
-20
openair2/LAYER2/RLC/rlc_rrc.c
openair2/LAYER2/RLC/rlc_rrc.c
+26
-20
No files found.
openair2/LAYER2/RLC/rlc_rrc.c
View file @
165f0f94
...
@@ -614,12 +614,11 @@ rlc_op_status_t rrc_rlc_remove_rlc (
...
@@ -614,12 +614,11 @@ rlc_op_status_t rrc_rlc_remove_rlc (
key
=
RLC_COLL_KEY_MBMS_VALUE
(
ctxt_pP
->
module_id
,
ctxt_pP
->
rnti
,
ctxt_pP
->
enb_flag
,
mbms_id_p
->
service_id
,
mbms_id_p
->
session_id
);
key
=
RLC_COLL_KEY_MBMS_VALUE
(
ctxt_pP
->
module_id
,
ctxt_pP
->
rnti
,
ctxt_pP
->
enb_flag
,
mbms_id_p
->
service_id
,
mbms_id_p
->
session_id
);
}
}
if
((
sourceL2Id
>
0
)
&&
(
destinationL2Id
>
0
)
){
if
((
sourceL2Id
>
0
)
&&
(
destinationL2Id
>
0
)
){
key
=
RLC_COLL_KEY_SOURCE_DEST_VALUE
(
ctxt_pP
->
module_id
,
ctxt_pP
->
rnti
,
ctxt_pP
->
enb_flag
,
rb_idP
,
sourceL2Id
,
destinationL2Id
,
srb_flagP
);
key
=
RLC_COLL_KEY_SOURCE_DEST_VALUE
(
ctxt_pP
->
module_id
,
ctxt_pP
->
rnti
,
ctxt_pP
->
enb_flag
,
rb_idP
,
sourceL2Id
,
destinationL2Id
,
srb_flagP
);
key_lcid
=
RLC_COLL_KEY_LCID_SOURCE_DEST_VALUE
(
ctxt_pP
->
module_id
,
ctxt_pP
->
rnti
,
ctxt_pP
->
enb_flag
,
chan_idP
,
sourceL2Id
,
destinationL2Id
,
srb_flagP
);
}
else
}
else
#endif
#endif
{
{
key
=
RLC_COLL_KEY_VALUE
(
ctxt_pP
->
module_id
,
ctxt_pP
->
rnti
,
ctxt_pP
->
enb_flag
,
rb_idP
,
srb_flagP
);
key
=
RLC_COLL_KEY_VALUE
(
ctxt_pP
->
module_id
,
ctxt_pP
->
rnti
,
ctxt_pP
->
enb_flag
,
rb_idP
,
srb_flagP
);
}
}
...
@@ -628,24 +627,31 @@ rlc_op_status_t rrc_rlc_remove_rlc (
...
@@ -628,24 +627,31 @@ rlc_op_status_t rrc_rlc_remove_rlc (
h_rc
=
hashtable_get
(
rlc_coll_p
,
key
,
(
void
**
)
&
rlc_union_p
);
h_rc
=
hashtable_get
(
rlc_coll_p
,
key
,
(
void
**
)
&
rlc_union_p
);
if
(
h_rc
==
HASH_TABLE_OK
)
{
if
(
h_rc
==
HASH_TABLE_OK
)
{
// also remove the hash-key created by LC-id
// also remove the hash-key created by LC-id
switch
(
rlc_union_p
->
mode
)
{
switch
(
rlc_union_p
->
mode
)
{
case
RLC_MODE_AM
:
case
RLC_MODE_AM
:
lcid
=
rlc_union_p
->
rlc
.
am
.
channel_id
;
lcid
=
rlc_union_p
->
rlc
.
am
.
channel_id
;
break
;
break
;
case
RLC_MODE_UM
:
case
RLC_MODE_UM
:
lcid
=
rlc_union_p
->
rlc
.
um
.
channel_id
;
lcid
=
rlc_union_p
->
rlc
.
um
.
channel_id
;
break
;
break
;
case
RLC_MODE_TM
:
case
RLC_MODE_TM
:
lcid
=
rlc_union_p
->
rlc
.
tm
.
channel_id
;
lcid
=
rlc_union_p
->
rlc
.
tm
.
channel_id
;
break
;
break
;
default:
default:
LOG_E
(
RLC
,
PROTOCOL_CTXT_FMT
"[%s %u] RLC mode is unknown!
\n
"
,
LOG_E
(
RLC
,
PROTOCOL_CTXT_FMT
"[%s %u] RLC mode is unknown!
\n
"
,
PROTOCOL_CTXT_ARGS
(
ctxt_pP
),
PROTOCOL_CTXT_ARGS
(
ctxt_pP
),
(
srb_flagP
)
?
"SRB"
:
"DRB"
,
(
srb_flagP
)
?
"SRB"
:
"DRB"
,
rb_idP
);
rb_idP
);
}
#ifdef Rel14
if
((
sourceL2Id
>
0
)
&&
(
destinationL2Id
>
0
)
){
key_lcid
=
RLC_COLL_KEY_LCID_SOURCE_DEST_VALUE
(
ctxt_pP
->
module_id
,
ctxt_pP
->
rnti
,
ctxt_pP
->
enb_flag
,
lcid
,
sourceL2Id
,
destinationL2Id
,
srb_flagP
);
}
else
#endif
{
key_lcid
=
RLC_COLL_KEY_LCID_VALUE
(
ctxt_pP
->
module_id
,
ctxt_pP
->
rnti
,
ctxt_pP
->
enb_flag
,
lcid
,
srb_flagP
);
}
}
key_lcid
=
RLC_COLL_KEY_LCID_VALUE
(
ctxt_pP
->
module_id
,
ctxt_pP
->
rnti
,
ctxt_pP
->
enb_flag
,
lcid
,
srb_flagP
);
h_lcid_rc
=
hashtable_get
(
rlc_coll_p
,
key_lcid
,
(
void
**
)
&
rlc_union_p
);
h_lcid_rc
=
hashtable_get
(
rlc_coll_p
,
key_lcid
,
(
void
**
)
&
rlc_union_p
);
}
else
{
}
else
{
h_lcid_rc
=
HASH_TABLE_KEY_NOT_EXISTS
;
h_lcid_rc
=
HASH_TABLE_KEY_NOT_EXISTS
;
...
...
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