From 496d4c03cd74c91d5a1108a6ec36686fc765da62 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Wed, 23 Nov 2016 18:24:05 +0900 Subject: [PATCH] Remove the scan filter supported check logic for the platform filter Change-Id: Ic8488184a7c66111064ae1c55c57b2f4c227614f Signed-off-by: DoHyun Pyun --- src/bluetooth-adapter.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/bluetooth-adapter.c b/src/bluetooth-adapter.c index b131508..c7ddc0b 100644 --- a/src/bluetooth-adapter.c +++ b/src/bluetooth-adapter.c @@ -3380,11 +3380,6 @@ int bt_adapter_le_create_scan_filter(bt_scan_filter_h *scan_filter) BT_CHECK_INIT_STATUS(); BT_CHECK_INPUT_PARAMETER(scan_filter); - if (bluetooth_is_scan_filter_supported() == FALSE) { - BT_ERR("BT_ERROR_NOT_SUPPORTED(0x%08x)", BT_ERROR_NOT_SUPPORTED); - return BT_ERROR_NOT_SUPPORTED; - } - __filter = (bt_le_scan_filter_s *)g_malloc0(sizeof(bt_le_scan_filter_s)); if (__filter == NULL) { BT_ERR("OUT_OF_MEMORY(0x%08x)", @@ -3743,11 +3738,6 @@ int bt_adapter_le_unregister_all_scan_filters(void) BT_CHECK_LE_SUPPORT(); BT_CHECK_INIT_STATUS(); - if (bluetooth_is_scan_filter_supported() == FALSE) { - BT_ERR("BT_ERROR_NOT_SUPPORTED(0x%08x)", BT_ERROR_NOT_SUPPORTED); - return BT_ERROR_NOT_SUPPORTED; - } - if (bluetooth_is_le_scanning() == TRUE) { BT_ERR("NOW_IN_PROGRESS(0x%08x)", BT_ERROR_NOW_IN_PROGRESS); /* LCOV_EXCL_LINE */ -- 2.7.4