diff options
-rw-r--r-- | src/adapter.c | 1 | ||||
-rw-r--r-- | src/adapter.h | 1 | ||||
-rw-r--r-- | src/dbus-hci.c | 5 |
3 files changed, 0 insertions, 7 deletions
diff --git a/src/adapter.c b/src/adapter.c index 16d03958..bc49090c 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2492,7 +2492,6 @@ int adapter_stop(struct adapter *adapter) adapter->up = 0; adapter->scan_mode = SCAN_DISABLED; adapter->mode = MODE_OFF; - adapter->pinq_idle = 0; adapter->state = DISCOVER_TYPE_NONE; unload_drivers(adapter); diff --git a/src/adapter.h b/src/adapter.h index 7d6ca9cb..d643f40d 100644 --- a/src/adapter.h +++ b/src/adapter.h @@ -102,7 +102,6 @@ struct adapter { uint8_t scan_mode; /* scan mode: SCAN_DISABLED, SCAN_PAGE, SCAN_INQUIRY */ uint8_t mode; /* off, connectable, discoverable, limited */ uint8_t global_mode; /* last valid global mode */ - int pinq_idle; /* tracks the idle time for periodic inquiry */ int state; /* standard inq, periodic inq, name resloving */ GSList *found_devices; GSList *oor_devices; /* out of range device list */ diff --git a/src/dbus-hci.c b/src/dbus-hci.c index b713b16f..5e6285ac 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -969,8 +969,6 @@ void hcid_dbus_inquiry_complete(bdaddr_t *local) } } - adapter->pinq_idle = 1; - /* * Enable resolution again: standard inquiry can be * received in the periodic inquiry idle state. @@ -1242,10 +1240,7 @@ void hcid_dbus_inquiry_result(bdaddr_t *local, bdaddr_t *peer, uint32_t class, adapter_set_state(adapter, state); } - /* reset the idle flag when the inquiry complete event arrives */ if (adapter_get_state(adapter) & PERIODIC_INQUIRY) { - adapter->pinq_idle = 0; - /* Out of range list update */ l = g_slist_find_custom(adapter->oor_devices, peer_addr, (GCompareFunc) strcmp); |