]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix mgmt connected notification
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 11 Nov 2014 09:33:24 +0000 (11:33 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 11 Nov 2014 09:34:52 +0000 (10:34 +0100)
commit18374a92e20dedaea26c693383263f3159d54649
tree478f4e4f82d5ce7def6486dd51ad32e3eb4f51b3
parentdd4b442441bdfeb44abae1b4439d80f50a327494
Bluetooth: Fix mgmt connected notification

This patch fixes a regression that was introduced by commit
01528dc472626a01cf34945a2d00ae163b92a94a. In addition to BT_CONFIG,
BT_CONNECTED is also a state in which we may get a remote name and need
to indicate over mgmt the connection status. This scenario is
particularly likely to happen for incoming connections that do not need
authentication since there the hci_conn state will reach BT_CONNECTED
before the remote name is received.

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