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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
4086c585
Commit
4086c585
authored
Aug 22, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix-i17-s1ap-ue-capabilities' into 'develop'
Bugfix i17 s1ap ue capabilities See merge request !39
parents
99acedd0
07b3408d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
22 deletions
+39
-22
openair2/RRC/LITE/rrc_eNB_S1AP.c
openair2/RRC/LITE/rrc_eNB_S1AP.c
+37
-22
openair3/S1AP/s1ap_eNB_nas_procedures.c
openair3/S1AP/s1ap_eNB_nas_procedures.c
+2
-0
No files found.
openair2/RRC/LITE/rrc_eNB_S1AP.c
View file @
4086c585
...
@@ -60,6 +60,8 @@
...
@@ -60,6 +60,8 @@
#endif
#endif
#include "msc.h"
#include "msc.h"
#include "UERadioAccessCapabilityInformation.h"
#include "gtpv1u_eNB_task.h"
#include "gtpv1u_eNB_task.h"
#include "RRC/LITE/rrc_eNB_GTPV1U.h"
#include "RRC/LITE/rrc_eNB_GTPV1U.h"
...
@@ -584,29 +586,42 @@ void rrc_eNB_send_S1AP_UE_CAPABILITIES_IND(
...
@@ -584,29 +586,42 @@ void rrc_eNB_send_S1AP_UE_CAPABILITIES_IND(
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
{
{
UECapabilityInformation_t
*
ueCapabilityInformation
=
&
ul_dcch_msg
->
message
.
choice
.
c1
.
choice
.
ueCapabilityInformation
;
UECapabilityInformation_t
*
ueCapabilityInformation
=
&
ul_dcch_msg
->
message
.
choice
.
c1
.
choice
.
ueCapabilityInformation
;
/* 4096 is arbitrary, should be big enough */
if
((
ueCapabilityInformation
->
criticalExtensions
.
present
==
UECapabilityInformation__criticalExtensions_PR_c1
)
unsigned
char
buf
[
4096
];
&&
(
ueCapabilityInformation
->
criticalExtensions
.
choice
.
c1
.
present
unsigned
char
*
buf2
;
==
UECapabilityInformation__criticalExtensions__c1_PR_ueCapabilityInformation_r8
)
UERadioAccessCapabilityInformation_t
rac
;
&&
(
ueCapabilityInformation
->
criticalExtensions
.
choice
.
c1
.
choice
.
ueCapabilityInformation_r8
.
ue_CapabilityRAT_ContainerList
.
list
.
count
>
0
))
{
UE_CapabilityRAT_ContainerList_t
*
ue_CapabilityRAT_ContainerList
=
if
(
ueCapabilityInformation
->
criticalExtensions
.
present
!=
UECapabilityInformation__criticalExtensions_PR_c1
&
ueCapabilityInformation
->
criticalExtensions
.
choice
.
c1
.
choice
.
ueCapabilityInformation_r8
.
ue_CapabilityRAT_ContainerList
;
||
ueCapabilityInformation
->
criticalExtensions
.
choice
.
c1
.
present
!=
UECapabilityInformation__criticalExtensions__c1_PR_ueCapabilityInformation_r8
)
{
MessageDef
*
msg_p
;
LOG_E
(
RRC
,
"[eNB %d][UE %x] bad UE capabilities
\n
"
,
ctxt_pP
->
module_id
,
ue_context_pP
->
ue_context
.
rnti
);
return
;
msg_p
=
itti_alloc_new_message
(
TASK_RRC_ENB
,
S1AP_UE_CAPABILITIES_IND
);
S1AP_UE_CAPABILITIES_IND
(
msg_p
).
eNB_ue_s1ap_id
=
ue_context_pP
->
ue_context
.
eNB_ue_s1ap_id
;
S1AP_UE_CAPABILITIES_IND
(
msg_p
).
ue_radio_cap
.
length
=
ue_CapabilityRAT_ContainerList
->
list
.
array
[
0
]
->
ueCapabilityRAT_Container
.
size
;
S1AP_UE_CAPABILITIES_IND
(
msg_p
).
ue_radio_cap
.
buffer
=
ue_CapabilityRAT_ContainerList
->
list
.
array
[
0
]
->
ueCapabilityRAT_Container
.
buf
;
itti_send_msg_to_task
(
TASK_S1AP
,
ctxt_pP
->
instance
,
msg_p
);
if
(
ue_CapabilityRAT_ContainerList
->
list
.
count
>
1
)
{
LOG_W
(
RRC
,
"[eNB %d][UE %x] can only handle 1 UE capability RAT item for now (%d)
\n
"
,
ctxt_pP
->
module_id
,
ue_context_pP
->
ue_context
.
rnti
,
ue_CapabilityRAT_ContainerList
->
list
.
count
);
}
}
}
asn_enc_rval_t
ret
=
uper_encode_to_buffer
(
&
asn_DEF_UECapabilityInformation
,
ueCapabilityInformation
,
buf
,
4096
);
if
(
ret
.
encoded
==
-
1
)
abort
();
memset
(
&
rac
,
0
,
sizeof
(
UERadioAccessCapabilityInformation_t
));
rac
.
criticalExtensions
.
present
=
UERadioAccessCapabilityInformation__criticalExtensions_PR_c1
;
rac
.
criticalExtensions
.
choice
.
c1
.
present
=
UERadioAccessCapabilityInformation__criticalExtensions__c1_PR_ueRadioAccessCapabilityInformation_r8
;
rac
.
criticalExtensions
.
choice
.
c1
.
choice
.
ueRadioAccessCapabilityInformation_r8
.
ue_RadioAccessCapabilityInfo
.
buf
=
buf
;
rac
.
criticalExtensions
.
choice
.
c1
.
choice
.
ueRadioAccessCapabilityInformation_r8
.
ue_RadioAccessCapabilityInfo
.
size
=
(
ret
.
encoded
+
7
)
/
8
;
rac
.
criticalExtensions
.
choice
.
c1
.
choice
.
ueRadioAccessCapabilityInformation_r8
.
nonCriticalExtension
=
NULL
;
/* 8192 is arbitrary, should be big enough */
buf2
=
malloc16
(
8192
);
if
(
buf2
==
NULL
)
abort
();
ret
=
uper_encode_to_buffer
(
&
asn_DEF_UERadioAccessCapabilityInformation
,
&
rac
,
buf2
,
8192
);
if
(
ret
.
encoded
==
-
1
)
abort
();
MessageDef
*
msg_p
;
msg_p
=
itti_alloc_new_message
(
TASK_RRC_ENB
,
S1AP_UE_CAPABILITIES_IND
);
S1AP_UE_CAPABILITIES_IND
(
msg_p
).
eNB_ue_s1ap_id
=
ue_context_pP
->
ue_context
.
eNB_ue_s1ap_id
;
S1AP_UE_CAPABILITIES_IND
(
msg_p
).
ue_radio_cap
.
length
=
(
ret
.
encoded
+
7
)
/
8
;
S1AP_UE_CAPABILITIES_IND
(
msg_p
).
ue_radio_cap
.
buffer
=
buf2
;
itti_send_msg_to_task
(
TASK_S1AP
,
ctxt_pP
->
instance
,
msg_p
);
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
...
openair3/S1AP/s1ap_eNB_nas_procedures.c
View file @
4086c585
...
@@ -668,6 +668,8 @@ int s1ap_eNB_ue_capabilities(instance_t instance,
...
@@ -668,6 +668,8 @@ int s1ap_eNB_ue_capabilities(instance_t instance,
return
-
1
;
return
-
1
;
}
}
free
(
ue_cap_info_ind_p
->
ue_radio_cap
.
buffer
);
MSC_LOG_TX_MESSAGE
(
MSC_LOG_TX_MESSAGE
(
MSC_S1AP_ENB
,
MSC_S1AP_ENB
,
MSC_S1AP_MME
,
MSC_S1AP_MME
,
...
...
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