]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix checking for HCI_SETUP flag when receiving mgmt commands
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 10 Oct 2013 16:06:04 +0000 (18:06 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 10 Oct 2013 16:13:45 +0000 (09:13 -0700)
commitc41096afb998e2217321d376e1a8774c3a27b253
tree0c17800a5da36569359f419278087ab79e9ce42d
parentbd20488d1a48864f6e03805957db65b194c2e942
Bluetooth: Fix checking for HCI_SETUP flag when receiving mgmt commands

When the HCI_SETUP flag is set the controller has not yet been announced
over mgmt and therefore doesn't exist from that perspective. If we
nevertheless get a mgmt command for it we should respond with the
appropriate INVALID_INDEX error.

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