Remove abnormal logic for ARTIK530 Success is returned even though stop_scan fails... 52/241952/1
authorDeokhyun Kim <dukan.kim@samsung.com>
Fri, 21 Aug 2020 04:03:29 +0000 (13:03 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Fri, 21 Aug 2020 05:28:59 +0000 (14:28 +0900)
Change-Id: I477be2638453de37cfbf2cc894a66c5db10d6a3b
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-oal/bluez_hal/src/bt-hal-adapter-le.c

index e0128fa..14f90c3 100644 (file)
@@ -922,12 +922,14 @@ int _bt_hal_adapter_le_stop_scan(void)
                        g_dbus_error_strip_remote_error(error);
                        ERR("StopLEDiscovery Fail: %s", error->message);
 
+#if 0
                        /* Abnormal case for ARTIK530 */
                        if (g_strrstr(error->message, "No discovery started") ||
                                 g_strrstr(error->message, "Operation already in progress")) {
                                g_clear_error(&error);
                                return BT_STATUS_SUCCESS;
                        }
+#endif
 
                        g_clear_error(&error);
                        return BT_STATUS_FAIL;