Bluetooth: Stop advertising always before initiating a connection
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 8 Jul 2014 12:07:52 +0000 (15:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 8 Jul 2014 12:22:06 +0000 (14:22 +0200)
commit376f54c171674ac1f9a2eefe67d413db4836d25a
tree746218aeca34afc9ae824ef8f826da7352b7b5e4
parent73e082f80d990c017c695a6750f7ac96cdc6308a
Bluetooth: Stop advertising always before initiating a connection

Most controllers do not support advertising while initiating an LE
connection. We also have to first disable current advertising if the
initiation is going to happen through direct advertising. Therefore,
simply stop advertising as the first thing when starting to issue
commands to establish an LE connection.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_conn.c