Bluetooth: Add missing cmd_status handler for LE_Start_Encryption
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Mar 2014 12:39:04 +0000 (14:39 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Mar 2014 14:51:55 +0000 (07:51 -0700)
commit81d0c8ad7163d9860374e38a75e2e99d00ac8c17
treeb4c132d043cc5fb1c77566b42085112a3f4df9ba
parent0a66cf203676f794084c6a97189eb41565bfd6aa
Bluetooth: Add missing cmd_status handler for LE_Start_Encryption

It is possible that the HCI_LE_Start_Encryption command fails in an
early stage and triggers a command status event with the failure code.
In such a case we need to properly notify the hci_conn object and
cleanly bring the connection down. This patch adds the missing command
status handler for this HCI command.

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