From: Johan Hedberg Date: Fri, 8 Aug 2014 06:32:51 +0000 (+0300) Subject: Bluetooth: Move SMP initialization after HCI init X-Git-Tag: fixes-against-v3.18-rc2~81^2~133^2~84^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54506918059a5bdbf396f34f2e0a2735803024db;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed