diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-08-08 08:32:51 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-08-14 08:49:17 +0200 |
commit | 54506918059a5bdbf396f34f2e0a2735803024db (patch) | |
tree | 6f49d893d86f04e5d707628f87c847428e5fb546 /net/bluetooth/smp.h | |
parent | Bluetooth: Refactor SMP (de)initialization into separate functions (diff) | |
download | linux-54506918059a5bdbf396f34f2e0a2735803024db.tar.xz linux-54506918059a5bdbf396f34f2e0a2735803024db.zip |
Bluetooth: Move SMP initialization after HCI init
First of all, it's wasteful to initialize SMP if it's never going to be
used (e.g. on non-LE controllers). Second of all, when we move to use
l2cap_chan we need to know the real local address, meaning we must have
completed at least part of the HCI init. This patch moves the SMP
initialization to after the HCI init procedure and makes it depend on
whether the controller actually supports LE.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/smp.h')
0 files changed, 0 insertions, 0 deletions