Bluetooth: Fix interaction of HCI_QUIRK_RESET_ON_CLOSE and HCI_AUTO_OFF
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 7 Oct 2015 23:53:55 +0000 (01:53 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 8 Oct 2015 07:00:05 +0000 (10:00 +0300)
commitacc649c6540ef224cc07d17c4b632da9dedfb6a2
tree88f3872dcfcc296e5cfa6ca45f6d747fe615e636
parent075e1f5e6c201111e32da99919eb052edc6d1c82
Bluetooth: Fix interaction of HCI_QUIRK_RESET_ON_CLOSE and HCI_AUTO_OFF

When the controller requires the HCI Reset command to be send when
closing the transport, the HCI_AUTO_OFF needs to be accounted for. The
current code tries to actually do that, but the flag gets cleared to
early. So store its value and use it that stored value instead of
checking for a flag that is always cleared.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_core.c
This page took 0.02459 seconds and 5 git commands to generate.