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
canghaiwuhen
OpenXG-RAN
Commits
2896e5bf
Commit
2896e5bf
authored
Apr 21, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FAPI: configure drb
parent
cc7bd852
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
openair2/LAYER2/MAC/config.c
openair2/LAYER2/MAC/config.c
+45
-0
No files found.
openair2/LAYER2/MAC/config.c
View file @
2896e5bf
...
@@ -178,6 +178,51 @@ rrc_mac_config_req(
...
@@ -178,6 +178,51 @@ rrc_mac_config_req(
// SRB2_lchan_config->choice.explicitValue.ul_SpecificParameters->logicalChannelGroup
// SRB2_lchan_config->choice.explicitValue.ul_SpecificParameters->logicalChannelGroup
if
(
logicalChannelConfig
!=
NULL
)
{
if
(
logicalChannelConfig
!=
NULL
)
{
#if FAPI
if
(
eNB_flagP
==
1
)
{
printf
(
"MAC CONFIG lcid %d group %d
\n
"
,
(
int
)
logicalChannelIdentity
,
(
int
)
*
logicalChannelConfig
->
ul_SpecificParameters
->
logicalChannelGroup
);
/* only configure DRBs, SRBs are already configured */
if
(
logicalChannelIdentity
>
2
)
{
struct
CschedLcConfigReqParameters
lc
;
struct
LogicalChannelConfigListElement_s
lcs
;
struct
CschedLcConfigCnfParameters
lcr
;
fapi_interface_t
*
fapi
;
LOG_I
(
MAC
,
"eNB %d/%d: FAPI: configure DRB %d for UE %x
\n
"
,
Mod_id
,
CC_id
,
logicalChannelIdentity
,
rntiP
);
fapi
=
eNB_mac_inst
[
Mod_id
].
fapi
;
lc
.
rnti
=
rntiP
;
lc
.
reconfigureFlag
=
false
;
lc
.
nr_logicalChannelConfigList
=
1
;
lc
.
logicalChannelConfigList
=
&
lcs
;
lc
.
nr_vendorSpecificList
=
0
;
lc
.
vendorSpecificList
=
NULL
;
lcs
.
logicalChannelIdentity
=
1
;
lcs
.
logicalChannelGroup
=
*
logicalChannelConfig
->
ul_SpecificParameters
->
logicalChannelGroup
;
lcs
.
direction
=
DIR_BOTH
;
/* TODO: not necessarily */
lcs
.
qosBearerType
=
QBT_NON_GBR
;
/* TODO: not necessarily */
lcs
.
qci
=
5
;
/* what to put? see 23.203 table 6.1.7 */
/* TODO: bitrates not used - let's suppose we are in non GBR */
CschedLcConfigReq
(
fapi
->
sched
,
&
lc
);
CschedLcConfigCnf
(
fapi
,
&
lcr
);
if
(
lcr
.
rnti
!=
rntiP
)
{
LOG_E
(
MAC
,
"%s:%d:%s: possible?
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
abort
();
}
if
(
lcr
.
result
!=
ff_SUCCESS
)
{
LOG_E
(
MAC
,
"%s:%d:%s: possible?
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
abort
();
}
if
(
lcr
.
nr_logicalChannelIdendity
!=
1
)
{
LOG_E
(
MAC
,
"%s:%d:%s: possible?
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
abort
();
}
/* TODO: check other return values (see rrc_mac_fapi_configure_srb12 for why it's not done) */
}
}
#endif
/* FAPI */
if
(
eNB_flagP
==
0
)
{
if
(
eNB_flagP
==
0
)
{
LOG_I
(
MAC
,
"[CONFIG][UE %d] Applying RRC logicalChannelConfig from eNB%d
\n
"
,
Mod_id
,
eNB_index
);
LOG_I
(
MAC
,
"[CONFIG][UE %d] Applying RRC logicalChannelConfig from eNB%d
\n
"
,
Mod_id
,
eNB_index
);
UE_mac_inst
[
Mod_id
].
logicalChannelConfig
[
logicalChannelIdentity
]
=
logicalChannelConfig
;
UE_mac_inst
[
Mod_id
].
logicalChannelConfig
[
logicalChannelIdentity
]
=
logicalChannelConfig
;
...
...
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