OSDN Git Service

Fix discovering when using software scheduler.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Mon, 4 May 2009 22:12:38 +0000 (19:12 -0300)
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Tue, 5 May 2009 20:30:46 +0000 (17:30 -0300)
Software scheduling (inquiry) was not handling device founds correctly,
the devices found in a round are not removed from the out of range list.

src/dbus-hci.c

index 7b9baed..11137cc 100644 (file)
@@ -662,8 +662,7 @@ void hcid_dbus_inquiry_result(bdaddr_t *local, bdaddr_t *peer, uint32_t class,
                adapter_set_state(adapter, state);
        }
        /* Out of range list update */
-       if (adapter_get_state(adapter) & PERIODIC_INQUIRY)
-               adapter_remove_oor_device(adapter, peer_addr);
+       adapter_remove_oor_device(adapter, peer_addr);
 
        legacy = (data == NULL);