OSDN Git Service

core: Bind connectable mode to discoverable for kernel connection control
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Jul 2014 12:52:28 +0000 (15:52 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Jul 2014 13:06:49 +0000 (16:06 +0300)
commitf6fe4992a094f7765d58fb2b6ccb8d8530e2d3be
tree12c05a2768d48fe40b6760843723480f25305442
parentc63b84c3b8e9021faed2c7d18d2f62ce6c2095d4
core: Bind connectable mode to discoverable for kernel connection control

When the kernel supports the BR/EDR whitelist we don't need to always be
connectable in order to receive incoming connections. Therefore, bind
the connectable mode to the discoverable mode whenever kernel connection
control is supported.

To avoid unnecessary mgmt and HCI commands disabling discoverable is
simply done by disabling connectable as it has the effect of disabling
both settings.
src/adapter.c