]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5f2aeaaeeb27e45b908a1789c028b3d1212758a
tree88f3872dcfcc296e5cfa6ca45f6d747fe615e636
parent803650d33cdb78e8c26aaaa4a179b4551991ec2d
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