Debug the current discovery type masking value 90/98790/1
authorHyuk Lee <hyuk0512.lee@samsung.com>
Mon, 21 Nov 2016 01:29:03 +0000 (10:29 +0900)
committerHyuk Lee <hyuk0512.lee@samsung.com>
Mon, 21 Nov 2016 01:29:56 +0000 (10:29 +0900)
Change-Id: Iba0f9c6baedf835f8f1e764e2142e99ff16a34af
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
src/adapter.c

index 732506d..f5cdbe7 100644 (file)
@@ -2655,7 +2655,11 @@ static void discovery_destroy(void *user_data)
        if (adapter->discovery_list)
                return;
 
+#ifdef __TIZEN_PATCH__
+       hci_clear_bit(BDADDR_BREDR, &adapter->discovery_type);
+#else
        adapter->discovery_type = 0x00;
+#endif
 
        if (adapter->discovery_idle_timeout > 0) {
                g_source_remove(adapter->discovery_idle_timeout);
@@ -2769,7 +2773,9 @@ static void le_discovery_destroy(void *user_data)
        if (adapter->discovery_list || adapter->le_discovery_list)
                return;
 
-       adapter->discovery_type = 0x00;
+       hci_clear_bit(BDADDR_LE_PUBLIC, &adapter->discovery_type);
+       hci_clear_bit(BDADDR_LE_RANDOM, &adapter->discovery_type);
+
        DBG("Restart Timer... adapter->discovery_type[%d]", adapter->discovery_type);
        if (adapter->discovery_idle_timeout > 0) {
                g_source_remove(adapter->discovery_idle_timeout);