Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
2033357e
Commit
2033357e
authored
Nov 09, 2015
by
Navid Nikaein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Few fixes for dedicated DRBs
parent
c975f8f7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
31 deletions
+42
-31
openair1/PHY/LTE_ESTIMATION/adjust_gain.c
openair1/PHY/LTE_ESTIMATION/adjust_gain.c
+4
-4
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+2
-2
openair2/LAYER2/RLC/rlc_rrc.c
openair2/LAYER2/RLC/rlc_rrc.c
+1
-1
openair2/RRC/LITE/MESSAGES/asn1_msg.c
openair2/RRC/LITE/MESSAGES/asn1_msg.c
+1
-1
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+34
-23
No files found.
openair1/PHY/LTE_ESTIMATION/adjust_gain.c
View file @
2033357e
...
...
@@ -53,10 +53,10 @@ phy_adjust_gain (PHY_VARS_UE *phy_vars_ue, uint8_t eNB_id)
if
(
rssi
>
0
)
rx_power_fil_dB
=
rssi
;
else
rx_power_fil_dB
=
phy_vars_ue
->
PHY_measurements
.
rx_power_avg_dB
[
eNB_id
];
printf
(
"Gain control: rssi %d (%d,%d)
\n
"
,
rssi
,
phy_vars_ue
->
PHY_measurements
.
rssi
,
phy_vars_ue
->
PHY_measurements
.
rx_power_avg_dB
[
eNB_id
]
LOG_D
(
PHY
,
"Gain control: rssi %d (%d,%d)
\n
"
,
rssi
,
phy_vars_ue
->
PHY_measurements
.
rssi
,
phy_vars_ue
->
PHY_measurements
.
rx_power_avg_dB
[
eNB_id
]
);
// Gain control with hysterisis
...
...
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
2033357e
...
...
@@ -906,7 +906,7 @@ pdcp_run (
RRC_DCCH_DATA_REQ
(
msg_p
).
frame
,
0
,
RRC_DCCH_DATA_REQ
(
msg_p
).
eNB_index
);
LOG_
D
(
PDCP
,
PROTOCOL_CTXT_FMT
"Received %s from %s: instance %d, rb_id %d, muiP %d, confirmP %d, mode %d
\n
"
,
LOG_
I
(
PDCP
,
PROTOCOL_CTXT_FMT
"Received %s from %s: instance %d, rb_id %d, muiP %d, confirmP %d, mode %d
\n
"
,
PROTOCOL_CTXT_ARGS
(
&
ctxt
),
msg_name
,
ITTI_MSG_ORIGIN_NAME
(
msg_p
),
...
...
@@ -1427,7 +1427,7 @@ pdcp_config_req_asn1 (
pdcp_pP
->
first_missing_pdu
=
-
1
;
pdcp_pP
->
rx_hfn_offset
=
0
;
LOG_
D
(
PDCP
,
PROTOCOL_PDCP_CTXT_FMT
" Action ADD LCID %d (rb id %d) "
LOG_
I
(
PDCP
,
PROTOCOL_PDCP_CTXT_FMT
" Action ADD LCID %d (rb id %d) "
"configured with SN size %d bits and RLC %s
\n
"
,
PROTOCOL_PDCP_CTXT_ARGS
(
ctxt_pP
,
pdcp_pP
),
lc_idP
,
...
...
openair2/LAYER2/RLC/rlc_rrc.c
View file @
2033357e
...
...
@@ -229,7 +229,7 @@ rlc_op_status_t rrc_rlc_config_asn1_req (const protocol_ctxt_t * const ctxt_pP
drb_id
=
drb_toaddmod_p
->
drb_Identity
;
lc_id
=
drb_id
+
2
;
LOG_
D
(
RLC
,
"Adding DRB %d, lc_id %d
\n
"
,
drb_id
,
lc_id
);
LOG_
I
(
RLC
,
"Adding DRB %d, lc_id %d
\n
"
,
drb_id
,
lc_id
);
if
(
drb_toaddmod_p
->
rlc_Config
)
{
...
...
openair2/RRC/LITE/MESSAGES/asn1_msg.c
View file @
2033357e
...
...
@@ -2015,7 +2015,7 @@ do_RRCConnectionReconfiguration(
(
void
*
)
&
dl_dcch_msg
,
buffer
,
RRC_BUF_SIZE
);
AssertFatal
(
enc_rval
.
encoded
>
0
,
"ASN1 message encoding failed (%s, %l
u
)!
\n
"
,
AssertFatal
(
enc_rval
.
encoded
>
0
,
"ASN1 message encoding failed (%s, %l)!
\n
"
,
enc_rval
.
failed_type
->
name
,
enc_rval
.
encoded
);
#ifdef XER_PRINT
...
...
openair2/RRC/LITE/rrc_eNB.c
View file @
2033357e
...
...
@@ -1078,7 +1078,7 @@ rrc_eNB_generate_dedicatedRRCConnectionReconfiguration(const protocol_ctxt_t* co
struct
LogicalChannelConfig
*
DRB_lchan_config
=
NULL
;
struct
LogicalChannelConfig__ul_SpecificParameters
*
DRB_ul_SpecificParameters
=
NULL
;
DRB_ToAddModList_t
**
DRB_configList
;
DRB_ToAddModList_t
**
DRB_configList
=&
ue_context_pP
->
ue_context
.
DRB_configList
;
//DRB_ToAddModList_t** RRC_DRB_configList=&ue_context_pP->ue_context.DRB_configList;
struct
RRCConnectionReconfiguration_r8_IEs__dedicatedInfoNASList
*
dedicatedInfoNASList
=
NULL
;
...
...
@@ -1109,6 +1109,7 @@ rrc_eNB_generate_dedicatedRRCConnectionReconfiguration(const protocol_ctxt_t* co
DRB_config
->
logicalChannelIdentity
=
CALLOC
(
1
,
sizeof
(
long
));
*
(
DRB_config
->
logicalChannelIdentity
)
=
(
long
)
(
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
e_rab_id
+
2
);
// value : x+2
DRB_rlc_config
=
CALLOC
(
1
,
sizeof
(
*
DRB_rlc_config
));
DRB_config
->
rlc_Config
=
DRB_rlc_config
;
...
...
@@ -1129,6 +1130,7 @@ rrc_eNB_generate_dedicatedRRCConnectionReconfiguration(const protocol_ctxt_t* co
DRB_rlc_config
->
present
=
RLC_Config_PR_um_Bi_Directional
;
DRB_rlc_config
->
choice
.
um_Bi_Directional
.
ul_UM_RLC
.
sn_FieldLength
=
SN_FieldLength_size10
;
DRB_rlc_config
->
choice
.
um_Bi_Directional
.
dl_UM_RLC
.
sn_FieldLength
=
SN_FieldLength_size10
;
DRB_rlc_config
->
choice
.
um_Bi_Directional
.
dl_UM_RLC
.
t_Reordering
=
T_Reordering_ms35
;
// PDCP
PDCP_rlc_UM
=
CALLOC
(
1
,
sizeof
(
*
PDCP_rlc_UM
));
DRB_pdcp_config
->
rlc_UM
=
PDCP_rlc_UM
;
...
...
@@ -1171,9 +1173,8 @@ rrc_eNB_generate_dedicatedRRCConnectionReconfiguration(const protocol_ctxt_t* co
DRB_ul_SpecificParameters
->
bucketSizeDuration
=
LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms50
;
// LCG for DTCH can take the value from 1 to 3 as defined in 36331: normally controlled by upper layers (like RRM)
logicalchannelgroup_drb
=
CALLOC
(
1
,
sizeof
(
long
));
*
logicalchannelgroup_drb
=
1
;
*
logicalchannelgroup_drb
=
(
i
+
1
)
%
3
;
DRB_ul_SpecificParameters
->
logicalChannelGroup
=
logicalchannelgroup_drb
;
ASN_SEQUENCE_ADD
(
&
(
*
DRB_configList
)
->
list
,
DRB_config
);
...
...
@@ -1801,6 +1802,8 @@ rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt_t* cons
/* TODO should test if e RAB are Ok before! */
ue_context_pP
->
ue_context
.
e_rab
[
i
].
status
=
E_RAB_STATUS_DONE
;
LOG_D
(
RRC
,
"setting the status for the default DRB (index %d) to (%d,%s)
\n
"
,
i
,
ue_context_pP
->
ue_context
.
e_rab
[
i
].
status
,
"E_RAB_STATUS_DONE"
);
}
/* If list is empty free the list and reset the address */
...
...
@@ -4188,6 +4191,7 @@ rrc_eNB_decode_dcch(
}
#else // establish a dedicated bearer
if
(
dedicated_DRB
==
0
)
{
// ue_context_p->ue_context.e_rab[0].status = E_RAB_STATUS_ESTABLISHED;
rrc_eNB_reconfigure_DRBs
(
ctxt_pP
,
ue_context_p
);
}
...
...
@@ -4402,7 +4406,14 @@ rrc_eNB_decode_dcch(
ue_context_p
,
ul_dcch_msg
);
}
#else
ue_context_p
->
ue_context
.
nb_of_e_rabs
=
1
;
for
(
i
=
0
;
i
<
ue_context_p
->
ue_context
.
nb_of_e_rabs
;
i
++
){
ue_context_p
->
ue_context
.
e_rab
[
i
].
status
=
E_RAB_STATUS_NEW
;
ue_context_p
->
ue_context
.
e_rab
[
i
].
param
.
e_rab_id
=
1
+
i
;
ue_context_p
->
ue_context
.
e_rab
[
i
].
param
.
qos
.
qci
=
9
;
}
ue_context_p
->
ue_context
.
setup_e_rabs
=
ue_context_p
->
ue_context
.
nb_of_e_rabs
;
#endif
rrc_eNB_generate_defaultRRCConnectionReconfiguration
(
ctxt_pP
,
...
...
@@ -4491,29 +4502,29 @@ void rrc_eNB_reconfigure_DRBs (const protocol_ctxt_t* const ctxt_pP,
int
i
;
for
(
i
=
0
;
i
<
NB_RB_MAX
;
// S1AP_MAX_E_RAB
i
<
NB_RB_MAX
-
3
;
// S1AP_MAX_E_RAB
i
++
)
{
if
(
(
ue_context_pP
->
ue_context
.
e_rab
[
i
].
status
!=
E_RAB_STATUS_ESTABLISHED
)
||
(
ue_context_pP
->
ue_context
.
e_rab
[
i
].
status
!=
E_RAB_STATUS_DONE
)
){
LOG_I
(
RRC
,
"setting up the dedicated DRBs %d
\n
"
,
i
);
ue_context_pP
->
ue_context
.
e_rab
[
i
].
status
=
E_RAB_STATUS_NEW
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
e_rab_id
=
i
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
qos
.
qci
=
i
%
9
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
qos
.
allocation_retention_priority
.
priority_level
=
i
%
PRIORITY_LEVEL_LOWEST
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
qos
.
allocation_retention_priority
.
pre_emp_capability
=
PRE_EMPTION_CAPABILITY_DISABLED
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
qos
.
allocation_retention_priority
.
pre_emp_vulnerability
=
PRE_EMPTION_VULNERABILITY_DISABLED
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
nas_pdu
.
buffer
=
NULL
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
nas_pdu
.
length
=
0
;
// memset (ue_context_pP->ue_context.e_rab[i].param.sgw_addr.buffer,0,20);
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
sgw_addr
.
length
=
0
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
gtp_teid
=
0
;
ue_context_pP
->
ue_context
.
nb_of_e_rabs
++
;
}
if
(
ue_context_pP
->
ue_context
.
e_rab
[
i
].
status
<
E_RAB_STATUS_DONE
){
ue_context_pP
->
ue_context
.
e_rab
[
i
].
status
=
E_RAB_STATUS_NEW
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
e_rab_id
=
i
+
1
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
qos
.
qci
=
i
%
9
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
qos
.
allocation_retention_priority
.
priority_level
=
i
%
PRIORITY_LEVEL_LOWEST
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
qos
.
allocation_retention_priority
.
pre_emp_capability
=
PRE_EMPTION_CAPABILITY_DISABLED
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
qos
.
allocation_retention_priority
.
pre_emp_vulnerability
=
PRE_EMPTION_VULNERABILITY_DISABLED
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
nas_pdu
.
buffer
=
NULL
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
nas_pdu
.
length
=
0
;
// memset (ue_context_pP->ue_context.e_rab[i].param.sgw_addr.buffer,0,20);
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
sgw_addr
.
length
=
0
;
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
gtp_teid
=
0
;
ue_context_pP
->
ue_context
.
nb_of_e_rabs
++
;
LOG_I
(
RRC
,
"setting up the dedicated DRBs %d (index %d) status %d
\n
"
,
ue_context_pP
->
ue_context
.
e_rab
[
i
].
param
.
e_rab_id
,
i
,
ue_context_pP
->
ue_context
.
e_rab
[
i
].
status
);
}
ue_context_pP
->
ue_context
.
setup_e_rabs
+=
ue_context_pP
->
ue_context
.
nb_of_e_rabs
;
}
rrc_eNB_generate_dedicatedRRCConnectionReconfiguration
(
ctxt_pP
,
ue_context_pP
,
0
);
...
...
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