]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Make hci_disconnect() behave correctly for all states
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 22 Oct 2015 07:49:39 +0000 (10:49 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 22 Oct 2015 09:37:22 +0000 (11:37 +0200)
commit4eced959cf2a69263a29e1a450e80e2748fd2ee2
treee215b60c6877d32fa359bad105f23308ff91072e
parent39bf8565b48ddba25d51785938f929d4f28436b0
Bluetooth: Make hci_disconnect() behave correctly for all states

There are a few places that don't explicitly check the connection
state before calling hci_disconnect(). To make this API do the right
thing take advantage of the new hci_abort_conn() API and also make
sure to only read the clock offset if we're really connected.

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