From 8437d512d9d8b5f290fcca951d3beb40e87cc812 Mon Sep 17 00:00:00 2001 From: "jh8801.jung" Date: Thu, 22 Jun 2017 14:38:46 +0900 Subject: [PATCH] Change for C sharp TC fail Signed-off-by: jh8801.jung Change-Id: I74cde2becefabb22c381a9f3e9504b0cbb74a2f0 --- packaging/nfc-plugin-emul.spec | 2 +- src/oem/oem_emul.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packaging/nfc-plugin-emul.spec b/packaging/nfc-plugin-emul.spec index 65fb8f4..8b9b6e2 100644 --- a/packaging/nfc-plugin-emul.spec +++ b/packaging/nfc-plugin-emul.spec @@ -1,6 +1,6 @@ Name: nfc-plugin-emul Summary: NFC emul plugin -Version: 0.0.24 +Version: 0.0.25 Release: 0 Group: TO_BE/FILLED_IN License: Apache-2.0 diff --git a/src/oem/oem_emul.c b/src/oem/oem_emul.c index 9c7e7cb..8ca646c 100755 --- a/src/oem/oem_emul.c +++ b/src/oem/oem_emul.c @@ -860,6 +860,7 @@ static int _net_nfc_create_records_from_emulMsg(emulMsg_s *emul_msg, ndef_messag create_record_count++; DEBUG_MSG("Create Record Sucess. Create Record Count[%d]", create_record_count); + continue; ERROR: /* free data */ @@ -876,7 +877,7 @@ ERROR: _nfc_emul_util_free_mem(filePayload.buffer); DEBUG_MSG("Create Record Loop End"); - + break; } DEBUG_EMUL_END(); @@ -2860,6 +2861,9 @@ static bool net_nfc_emul_controller_llcp_reject(net_nfc_target_handle_s* handle, static bool net_nfc_emul_controller_llcp_get_remote_config(net_nfc_target_handle_s* handle, net_nfc_llcp_config_info_s *config, net_nfc_error_e* result) { + /* In llcp specification ver 1.1, default miu size is 128 */ + const uint16_t default_miu = 128; + if (result == NULL) return false; @@ -2872,6 +2876,8 @@ static bool net_nfc_emul_controller_llcp_get_remote_config(net_nfc_target_handle DEBUG_EMUL_BEGIN(); + config->miu = default_miu; + DEBUG_EMUL_END(); return true; -- 2.7.4