[S] Change in onomondo-ipa[master]: WIP: Add refreshFlag
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/onomondo-ipa/+/43026?usp=email ) Change subject: WIP: Add refreshFlag ...................................................................... WIP: Add refreshFlag Ich weiss nicht die Bohne, was das hier soll. TBD!!! 5.9.15 TBD: explain why this is always true Change-Id: I7d8f9182b675ca0851e00ef8d36201151f30178f --- M src/ipa/libipa/context.h M src/ipa/libipa/es10b_immediate_enable.c M src/ipa/libipa/es10b_load_euicc_pkg.c 3 files changed, 7 insertions(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/onomondo-ipa refs/changes/26/43026/1 diff --git a/src/ipa/libipa/context.h b/src/ipa/libipa/context.h index 5065286..e0080d4 100644 --- a/src/ipa/libipa/context.h +++ b/src/ipa/libipa/context.h @@ -32,6 +32,7 @@ bool flag; struct ipa_buf *smdp_oid; struct ipa_buf *smdp_address; + bool refresh; } immediate_enable; } iot_euicc_emu; diff --git a/src/ipa/libipa/es10b_immediate_enable.c b/src/ipa/libipa/es10b_immediate_enable.c index 1d0b942..a649371 100644 --- a/src/ipa/libipa/es10b_immediate_enable.c +++ b/src/ipa/libipa/es10b_immediate_enable.c @@ -154,6 +154,7 @@ IPA_ASSIGN_BUF_TO_ASN(enable_prfle_req.req.profileIdentifier.choice.isdpAid, ctx->iot_euicc_emu.immediate_enable.profile_aid->data, ctx->iot_euicc_emu.immediate_enable.profile_aid->len); + enable_prfle_req.req.refreshFlag = ctx->nvstate.iot_euicc_emu.immediate_enable.refresh; enable_prfle_res = ipa_es10c_enable_prfle(ctx, &enable_prfle_req); if (enable_prfle_res && enable_prfle_res->res->enableResult == EnableProfileResponse__enableResult_ok) @@ -163,7 +164,7 @@ error: if (rc == ImmediateEnableResponse__immediateEnableResult_ok) { - IPA_LOGP_ES10X("ImmediateEnable", LERROR, + IPA_LOGP_ES10X("ImmediateEnable", LINFO, "IoT eUICC emulation active, function succeeded with status code %d=%s!\n", rc, ipa_str_from_num(error_code_strings, rc, "(unknown)")); } else { diff --git a/src/ipa/libipa/es10b_load_euicc_pkg.c b/src/ipa/libipa/es10b_load_euicc_pkg.c index fd3f1df..54cf3d9 100644 --- a/src/ipa/libipa/es10b_load_euicc_pkg.c +++ b/src/ipa/libipa/es10b_load_euicc_pkg.c @@ -241,10 +241,12 @@ euicc_result_data->present = EuiccResultData_PR_configureImmediateEnableResult; /* Update immediateEnableFlag */ - if (configureImmediateEnable_psmo->immediateEnableFlag) + if (configureImmediateEnable_psmo->immediateEnableFlag) { ctx->nvstate.iot_euicc_emu.immediate_enable.flag = true; - else + ctx->nvstate.iot_euicc_emu.immediate_enable.refresh = true; + } else { ctx->nvstate.iot_euicc_emu.immediate_enable.flag = false; + } /* Update smdpOid */ ipa_buf_free(ctx->nvstate.iot_euicc_emu.immediate_enable.smdp_oid); -- To view, visit https://gerrit.osmocom.org/c/onomondo-ipa/+/43026?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: onomondo-ipa Gerrit-Branch: master Gerrit-Change-Id: I7d8f9182b675ca0851e00ef8d36201151f30178f Gerrit-Change-Number: 43026 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas@eversberg.eu>
participants (1)
-
jolly