]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Reuse hci_stop_discovery function when cleaning up HCI state
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 10 Jun 2014 11:05:59 +0000 (14:05 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 13 Jun 2014 11:32:23 +0000 (13:32 +0200)
commit1c8ce2f9ae5d4cd9a457889c349f3b95023b7516
tree0da8d68e33e84af03f199e4d0d9455628e36b397
parentb1582578dba9ff9116f4854d520353d54a29c7a8
Bluetooth: Reuse hci_stop_discovery function when cleaning up HCI state

When cleaning up the HCI state as part of the power-off procedure we can
reuse the hci_stop_discovery() function instead of explicitly sending
HCI command related to discovery. The added benefit of this is that it
takes care of canceling name resolving and inquiry which were not
previously covered by the code.

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