From 4bc744920846c9e6101010128697ecae41aa9e68 Mon Sep 17 00:00:00 2001 From: Hyuk Lee Date: Wed, 21 Sep 2016 16:17:24 +0900 Subject: [PATCH] Fix the internal UTC fail issue Change-Id: I58c4cfb439e12d975a0d83c40dc65a14bd8ca95d Signed-off-by: Hyuk Lee --- src/bluetooth-adapter.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bluetooth-adapter.c b/src/bluetooth-adapter.c index 2be934c..94a2df4 100644 --- a/src/bluetooth-adapter.c +++ b/src/bluetooth-adapter.c @@ -3302,14 +3302,14 @@ int bt_adapter_le_create_scan_filter(bt_scan_filter_h *scan_filter) bt_le_scan_filter_s *__filter = NULL; BT_CHECK_LE_SUPPORT(); + 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; } - BT_CHECK_INIT_STATUS(); - BT_CHECK_INPUT_PARAMETER(scan_filter); - __filter = (bt_le_scan_filter_s *)g_malloc0(sizeof(bt_le_scan_filter_s)); if (__filter == NULL) { BT_ERR("OUT_OF_MEMORY(0x%08x)", @@ -3666,12 +3666,13 @@ int bt_adapter_le_unregister_all_scan_filters(void) int error_code = BT_ERROR_NONE; 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; } - BT_CHECK_INIT_STATUS(); if (bluetooth_is_le_scanning() == TRUE) { BT_ERR("NOW_IN_PROGRESS(0x%08x)", BT_ERROR_NOW_IN_PROGRESS); /* LCOV_EXCL_LINE */ -- 2.7.4