From 55e9f08430fec56501c3d0ad7e2bbf3c6fcc7c17 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Mon, 11 Jan 2021 11:10:17 -0500 Subject: [PATCH] Add special sponsors --- README.md | 23 +++++++++++++++++++---- src/mme/s1ap-build.c | 16 ++++++++++------ 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9e4d9f63e..a1d384a2a 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,29 @@ If you find Open5GS useful for work, please consider supporting this Open Source project by [Becoming a sponsor](https://github.com/sponsors/acetcom). To manage the funding transactions transparently, you can donate through [OpenCollective](https://opencollective.com/open5gs). -

Special Sponsor

- + -

+

Special Sponsor

+ + + + + + + +
-

+
+ + + +

Sponsors

diff --git a/src/mme/s1ap-build.c b/src/mme/s1ap-build.c index 7fce7e737..75027499b 100644 --- a/src/mme/s1ap-build.c +++ b/src/mme/s1ap-build.c @@ -1158,6 +1158,7 @@ ogs_pkbuf_t *s1ap_build_e_rab_release_command( ENB_UE_S1AP_ID = &ie->value.choice.ENB_UE_S1AP_ID; +#if 0 /* It's redundant */ ie = CALLOC(1, sizeof(S1AP_E_RABReleaseCommandIEs_t)); ASN_SEQUENCE_ADD(&E_RABReleaseCommand->protocolIEs, ie); @@ -1167,6 +1168,7 @@ ogs_pkbuf_t *s1ap_build_e_rab_release_command( S1AP_E_RABReleaseCommandIEs__value_PR_UEAggregateMaximumBitrate; UEAggregateMaximumBitrate = &ie->value.choice.UEAggregateMaximumBitrate; +#endif ie = CALLOC(1, sizeof(S1AP_E_RABReleaseCommandIEs_t)); ASN_SEQUENCE_ADD(&E_RABReleaseCommand->protocolIEs, ie); @@ -1192,12 +1194,14 @@ ogs_pkbuf_t *s1ap_build_e_rab_release_command( *MME_UE_S1AP_ID = enb_ue->mme_ue_s1ap_id; *ENB_UE_S1AP_ID = enb_ue->enb_ue_s1ap_id; - asn_uint642INTEGER( - &UEAggregateMaximumBitrate->uEaggregateMaximumBitRateUL, - subscription_data->ambr.uplink); - asn_uint642INTEGER( - &UEAggregateMaximumBitrate->uEaggregateMaximumBitRateDL, - subscription_data->ambr.downlink); + if (UEAggregateMaximumBitrate) { + asn_uint642INTEGER( + &UEAggregateMaximumBitrate->uEaggregateMaximumBitRateUL, + subscription_data->ambr.uplink); + asn_uint642INTEGER( + &UEAggregateMaximumBitrate->uEaggregateMaximumBitRateDL, + subscription_data->ambr.downlink); + } item = CALLOC(1, sizeof(S1AP_E_RABItemIEs_t)); ASN_SEQUENCE_ADD(&E_RABList->list, item);