Bluetooth: Add missing index added event on user channel failure
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 17 Feb 2014 17:21:18 +0000 (09:21 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 17 Feb 2014 17:48:24 +0000 (19:48 +0200)
commitc6521401d668538784e27d5746e7035fcf1107a8
tree0fd93b9cac6f8427f6d8de5cd9845aa9627186cb
parent0fe442ff854b7bf93e57c7f3964b05a6438de3db
Bluetooth: Add missing index added event on user channel failure

When the setup of user channel fails, the index added event is not sent
and will cause issues with user interaction. This problem can be easily
triggered with a LE only controller without a public address. In that
case hci_dev_open() fails and that error case is not sending an event
saying that the controller is available for normal use again.

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