Bluetooth: Fix mgmt response when HCI_Write_Scan_Enable fails
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Nov 2011 20:16:03 +0000 (22:16 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 8 Nov 2011 14:54:10 +0000 (12:54 -0200)
commit2d7cee5836d6d466829b255b1290c9386d4e884f
treee87b27c8fa32226f7368c9f01329696c30d3d39c
parent16ab91ab48287aa4fc757f3618820f728ee4412f
Bluetooth: Fix mgmt response when HCI_Write_Scan_Enable fails

A proper mgmt_command_status should be returned to user-space if either
discoverable or connectable enabling fails.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c