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
c1a3838f
Commit
c1a3838f
authored
Jun 12, 2019
by
masa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix : eNB down when tm3 UE relesed
parent
21d7446c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
openair2/RRC/LTE/rrc_eNB.c
openair2/RRC/LTE/rrc_eNB.c
+19
-12
No files found.
openair2/RRC/LTE/rrc_eNB.c
View file @
c1a3838f
...
...
@@ -1039,6 +1039,13 @@ void release_UE_in_freeList(module_id_t mod_id) {
for
(
i
=
0
;
i
<
MAX_MOBILES_PER_ENB
;
i
++
)
{
dlsch
=
eNB_PHY
->
dlsch
[
i
][
0
];
if
((
dlsch
!=
NULL
)
&&
(
dlsch
->
rnti
==
rnti
))
{
void
clean_eNb_dlsch
(
LTE_eNB_DLSCH_t
*
dlsch
);
LOG_I
(
RRC
,
"clean_eNb_dlsch dlsch[%d] UE %x
\n
"
,
i
,
rnti
);
clean_eNb_dlsch
(
dlsch
);
}
dlsch
=
eNB_PHY
->
dlsch
[
i
][
1
];
if
((
dlsch
!=
NULL
)
&&
(
dlsch
->
rnti
==
rnti
))
{
void
clean_eNb_dlsch
(
LTE_eNB_DLSCH_t
*
dlsch
);
LOG_I
(
RRC
,
"clean_eNb_dlsch dlsch[%d] UE %x
\n
"
,
i
,
rnti
);
...
...
@@ -3041,7 +3048,7 @@ void rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt_t
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm3
)
{
if
(
ue_context_pP
->
ue_context
.
UE_Capability
->
ue_Category
>=
2
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm3
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm3
.
buf
=
MALLOC
(
1
);
...
...
@@ -3053,7 +3060,7 @@ void rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt_t
}
}
else
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm4
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm4
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm4
.
buf
=
MALLOC
(
1
);
...
...
@@ -3062,7 +3069,7 @@ void rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt_t
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm4
.
bits_unused
=
2
;
}
else
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm5
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm5
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm5
.
buf
=
MALLOC
(
1
);
...
...
@@ -3071,7 +3078,7 @@ void rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt_t
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm5
.
bits_unused
=
4
;
}
else
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm6
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm6
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm6
.
buf
=
MALLOC
(
1
);
...
...
@@ -3668,7 +3675,7 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm3
)
{
if
(
ue_context_pP
->
ue_context
.
UE_Capability
->
ue_Category
>=
2
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm3
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm3
.
buf
=
MALLOC
(
1
);
...
...
@@ -3680,7 +3687,7 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
}
}
else
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm4
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm4
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm4
.
buf
=
MALLOC
(
1
);
...
...
@@ -3689,7 +3696,7 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm4
.
bits_unused
=
2
;
}
else
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm5
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm5
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm5
.
buf
=
MALLOC
(
1
);
...
...
@@ -3698,7 +3705,7 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm5
.
bits_unused
=
4
;
}
else
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm6
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm6
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm6
.
buf
=
MALLOC
(
1
);
...
...
@@ -4810,7 +4817,7 @@ rrc_eNB_generate_HO_RRCConnectionReconfiguration(const protocol_ctxt_t *const ct
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm3
)
{
if
(
ue_context_pP
->
ue_context
.
UE_Capability
->
ue_Category
>=
2
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm3
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm3
.
buf
=
MALLOC
(
1
);
...
...
@@ -4822,7 +4829,7 @@ rrc_eNB_generate_HO_RRCConnectionReconfiguration(const protocol_ctxt_t *const ct
}
}
else
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm4
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm4
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm4
.
buf
=
MALLOC
(
1
);
...
...
@@ -4831,7 +4838,7 @@ rrc_eNB_generate_HO_RRCConnectionReconfiguration(const protocol_ctxt_t *const ct
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm4
.
bits_unused
=
2
;
}
else
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm5
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm5
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm5
.
buf
=
MALLOC
(
1
);
...
...
@@ -4840,7 +4847,7 @@ rrc_eNB_generate_HO_RRCConnectionReconfiguration(const protocol_ctxt_t *const ct
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm5
.
bits_unused
=
4
;
}
else
if
(
rrc_inst
->
configuration
.
radioresourceconfig
[
0
].
ue_TransmissionMode
==
LTE_AntennaInfoDedicated__transmissionMode_tm6
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR
));
CALLOC
(
1
,
sizeof
(
struct
LTE_AntennaInfoDedicated__codebookSubsetRestriction
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
LTE_AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm6
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm6
.
buf
=
MALLOC
(
1
);
...
...
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