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
0b475920
Commit
0b475920
authored
Aug 22, 2016
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added codebook subset restriction to antenna info in RRCConnectionReconfiguration message
parent
62142b54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
1 deletion
+44
-1
openair2/RRC/LITE/MESSAGES/asn1_msg.c
openair2/RRC/LITE/MESSAGES/asn1_msg.c
+3
-1
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+41
-0
No files found.
openair2/RRC/LITE/MESSAGES/asn1_msg.c
View file @
0b475920
...
...
@@ -1603,6 +1603,7 @@ do_RRCConnectionSetup(
switch
(
transmission_mode
)
{
default:
LOG_W
(
RRC
,
"At RRCConnectionSetup Transmission mode can only take values 1 or 2! Defaulting to 1!
\n
"
);
case
1
:
physicalConfigDedicated2
->
antennaInfo
->
choice
.
explicitValue
.
transmissionMode
=
AntennaInfoDedicated__transmissionMode_tm1
;
break
;
...
...
@@ -1610,7 +1611,7 @@ do_RRCConnectionSetup(
case
2
:
physicalConfigDedicated2
->
antennaInfo
->
choice
.
explicitValue
.
transmissionMode
=
AntennaInfoDedicated__transmissionMode_tm2
;
break
;
/*
case 3:
physicalConfigDedicated2->antennaInfo->choice.explicitValue.transmissionMode= AntennaInfoDedicated__transmissionMode_tm3;
physicalConfigDedicated2->antennaInfo->choice.explicitValue.codebookSubsetRestriction= CALLOC(1,
...
...
@@ -1639,6 +1640,7 @@ do_RRCConnectionSetup(
case 7:
physicalConfigDedicated2->antennaInfo->choice.explicitValue.transmissionMode= AntennaInfoDedicated__transmissionMode_tm7;
break;
*/
}
...
...
openair2/RRC/LITE/rrc_eNB.c
View file @
0b475920
...
...
@@ -1394,11 +1394,52 @@ rrc_eNB_generate_defaultRRCConnectionReconfiguration(
#endif
//change the transmission mode for the primary component carrier
//TODO: add codebook subset restriction here
//TODO: change TM for secondary CC in SCelltoaddmodlist
if
(
*
physicalConfigDedicated
)
if
((
*
physicalConfigDedicated
)
->
antennaInfo
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
transmissionMode
=
rrc_inst
->
configuration
->
ue_TransmissionMode
[
0
];
LOG_D
(
RRC
,
"Setting transmission mode to %d+1
\n
"
,
rrc_inst
->
configuration
->
ue_TransmissionMode
[
0
]);
if
(
rrc_inst
->
configuration
->
ue_TransmissionMode
[
0
]
==
AntennaInfoDedicated__transmissionMode_tm3
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
AntennaInfoDedicated__codebookSubsetRestriction_PR
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm3
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm3
.
buf
=
MALLOC
(
1
);
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm3
.
buf
[
0
]
=
0xc0
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm3
.
size
=
1
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm3
.
bits_unused
=
6
;
}
else
if
(
rrc_inst
->
configuration
->
ue_TransmissionMode
[
0
]
==
AntennaInfoDedicated__transmissionMode_tm4
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
AntennaInfoDedicated__codebookSubsetRestriction_PR
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm4
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm4
.
buf
=
MALLOC
(
1
);
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm4
.
buf
[
0
]
=
0xfc
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm4
.
size
=
1
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm4
.
bits_unused
=
2
;
}
else
if
(
rrc_inst
->
configuration
->
ue_TransmissionMode
[
0
]
==
AntennaInfoDedicated__transmissionMode_tm5
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
AntennaInfoDedicated__codebookSubsetRestriction_PR
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm5
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm5
.
buf
=
MALLOC
(
1
);
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm5
.
buf
[
0
]
=
0xf0
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm5
.
size
=
1
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm5
.
bits_unused
=
4
;
}
else
if
(
rrc_inst
->
configuration
->
ue_TransmissionMode
[
0
]
==
AntennaInfoDedicated__transmissionMode_tm6
)
{
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
=
CALLOC
(
1
,
sizeof
(
AntennaInfoDedicated__codebookSubsetRestriction_PR
));
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
present
=
AntennaInfoDedicated__codebookSubsetRestriction_PR_n2TxAntenna_tm6
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm6
.
buf
=
MALLOC
(
1
);
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm6
.
buf
[
0
]
=
0xf0
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm6
.
size
=
1
;
(
*
physicalConfigDedicated
)
->
antennaInfo
->
choice
.
explicitValue
.
codebookSubsetRestriction
->
choice
.
n2TxAntenna_tm6
.
bits_unused
=
4
;
}
}
// Measurement ID list
...
...
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