From 29acf028edb8503b4aef5efc0780ab8dc7c8f4ee Mon Sep 17 00:00:00 2001 From: Jihoon Jung Date: Thu, 9 Jun 2016 18:18:46 +0900 Subject: [PATCH] Add implementation for remove aids Signed-off-by: Jihoon Jung Change-Id: I64c823040c7549cf5f004765e9e2efaafdb7110a --- src/nfc_card_emulation.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nfc_card_emulation.c b/src/nfc_card_emulation.c index a0b9ba6..976176d 100755 --- a/src/nfc_card_emulation.c +++ b/src/nfc_card_emulation.c @@ -461,7 +461,11 @@ int nfc_se_remove_route_for_aid_internal(const char* pkg_name, const char *aid) /* LCOV_EXCL_START */ CHECK_INIT(); - result = net_nfc_client_se_remove_route_aid_sync(pkg_name, aid); + if (aid == NULL) { + result = net_nfc_client_se_remove_package_aids_sync(pkg_name); + } else { + result = net_nfc_client_se_remove_route_aid_sync(pkg_name, aid); + } return nfc_common_convert_error_code(__func__, result); /* LCOV_EXCL_STOP */ -- 2.7.4