diff --git a/android/bluetooth.c b/android/bluetooth.c
index 7d678ba..2bc79e2 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
dev->found = false;
}
-static uint8_t get_adapter_discovering_type(void)
+static uint8_t get_supported_discovery_type(void)
{
uint8_t type = SCAN_TYPE_NONE;
{
struct mgmt_cp_start_discovery cp;
- cp.type = get_adapter_discovering_type() & type;
+ cp.type = get_supported_discovery_type() & type;
DBG("type=0x%x", cp.type);
DBG("%u %u", new_type, old_type);
- if (new_type == get_adapter_discovering_type()) {
+ if (new_type == get_supported_discovery_type()) {
g_slist_foreach(bonded_devices, clear_device_found, NULL);
g_slist_foreach(cached_devices, clear_device_found, NULL);
ev.state = HAL_DISCOVERY_STATE_STARTED;
goto done;
}
- if (old_type != get_adapter_discovering_type())
+ if (old_type != get_supported_discovery_type())
return;
ev.state = HAL_DISCOVERY_STATE_STOPPED;
{
struct mgmt_cp_stop_discovery cp;
- cp.type = get_adapter_discovering_type() & type;
+ cp.type = get_supported_discovery_type() & type;
DBG("type=0x%x", cp.type);
break;
case SCAN_TYPE_LE:
- if (get_adapter_discovering_type() == SCAN_TYPE_LE)
+ if (get_supported_discovery_type() == SCAN_TYPE_LE)
break;
if (!stop_discovery(SCAN_TYPE_LE)) {
case SCAN_TYPE_NONE:
break;
case SCAN_TYPE_LE:
- if (get_adapter_discovering_type() != SCAN_TYPE_LE)
+ if (get_supported_discovery_type() != SCAN_TYPE_LE)
break;
if (gatt_device_found_cb) {