Bluetooth: Fix wrong New Settings event when closing HCI User Channel
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 4 Sep 2016 03:13:46 +0000 (05:13 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 6 Sep 2016 09:22:13 +0000 (12:22 +0300)
commit8ae8e264e8298e0d44a57aac2a5b1107ee66b514
tree65c637a3af9da50f4d622379975abd2aeed3d4b0
parented689bc8ff6f86af3f0ad1399e1ae700eded6627
Bluetooth: Fix wrong New Settings event when closing HCI User Channel

When closing HCI User Channel, the New Settings event was send out to
inform about changed settings. However such event is wrong since the
exclusive HCI User Channel access is active until the Index Added event
has been sent.

@ USER Close: test
@ MGMT Event: New Settings (0x0006) plen 4
        Current settings: 0x00000ad0
          Bondable
          Secure Simple Pairing
          BR/EDR
          Low Energy
          Secure Connections
= Close Index: 00:14:EF:22:04:12
@ MGMT Event: Index Added (0x0004) plen 0

Calling __mgmt_power_off from hci_dev_do_close requires an extra check
for an active HCI User Channel.

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.027813 seconds and 5 git commands to generate.