static DBusConnection *dbus_conn = NULL;
-static bool kernel_bg_scan = false;
+static bool kernel_conn_control = false;
static GList *adapter_list = NULL;
static unsigned int adapter_remaining = 0;
* no need to start any discovery. The kernel will keep scanning
* as long as devices are in its auto-connection list.
*/
- if (kernel_bg_scan)
+ if (kernel_conn_control)
return;
/*
* no need to stop any discovery. The kernel will handle the
* auto-connection by itself.
*/
- if (kernel_bg_scan)
+ if (kernel_conn_control)
return;
/*
* adapter_auto_connect_add() function is used to maintain what to
* connect.
*/
- if (kernel_bg_scan)
+ if (kernel_conn_control)
return 0;
if (g_slist_find(adapter->connect_list, device)) {
if (device == adapter->connect_le)
adapter->connect_le = NULL;
- if (kernel_bg_scan)
+ if (kernel_conn_control)
return;
if (!g_slist_find(adapter->connect_list, device)) {
uint8_t bdaddr_type;
unsigned int id;
- if (!kernel_bg_scan)
+ if (!kernel_conn_control)
return;
if (g_slist_find(adapter->connect_list, device)) {
uint8_t bdaddr_type;
unsigned int id;
- if (!kernel_bg_scan)
+ if (!kernel_conn_control)
return;
if (!g_slist_find(adapter->connect_list, device)) {
* If kernel background scan is used then the kernel is
* responsible for connecting.
*/
- if (kernel_bg_scan)
+ if (kernel_conn_control)
return;
/*
{
struct mgmt_cp_remove_device cp;
- if (!kernel_bg_scan)
+ if (!kernel_conn_control)
return 0;
memset(&cp, 0, sizeof(cp));
uint16_t op = get_le16(opcode++);
if (op == MGMT_OP_ADD_DEVICE) {
- DBG("enabling kernel background scanning");
- kernel_bg_scan = true;
+ DBG("enabling kernel-side connection control");
+ kernel_conn_control = true;
}
}
}