Add implementation for remove aids 34/73734/1 accepted/tizen/common/20160609.150416 accepted/tizen/ivi/20160610.011232 accepted/tizen/mobile/20160610.011335 accepted/tizen/tv/20160610.011223 accepted/tizen/wearable/20160610.011256 submit/tizen/20160609.092748
authorJihoon Jung <jh8801.jung@samsung.com>
Thu, 9 Jun 2016 09:18:46 +0000 (18:18 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Thu, 9 Jun 2016 09:23:05 +0000 (18:23 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I64c823040c7549cf5f004765e9e2efaafdb7110a

src/nfc_card_emulation.c

index a0b9ba6..976176d 100755 (executable)
@@ -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 */