]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5774a7dcf7028a02e9d99330a142d3ee1adc841a
tree746218aeca34afc9ae824ef8f826da7352b7b5e4
parent28d867c04e337a12e54d40517bf0251a8b440140
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