From: Johan Hedberg Date: Mon, 7 Jul 2014 12:02:28 +0000 (+0300) Subject: Bluetooth: Pass desired connection role to hci_connect_le() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~87^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdd6275e510bd86c44d3fc85a78306f514bbac9a;p=pandora-kernel.git Bluetooth: Pass desired connection role to hci_connect_le() If we have both LE scanning and advertising simultaneously enabled we need a way to tell hci_connect_le() in which role to initiate a connection. This patch adds a new parameter to the function to give it the necessary information. For auto-connect and mgmt_pair_device we always use master role, whereas for L2CAP users (in practice sockets) we use slave role whenever HCI_ADVERTISING is set and master role otherwise. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed