summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg2011-11-07 21:16:03 +0100
committerGustavo F. Padovan2011-11-08 15:54:10 +0100
commit2d7cee5836d6d466829b255b1290c9386d4e884f (patch)
treee87b27c8fa32226f7368c9f01329696c30d3d39c /include
parentBluetooth: Add timeout field to mgmt_set_discoverable (diff)
downloadkernel-qcow2-linux-2d7cee5836d6d466829b255b1290c9386d4e884f.tar.gz
kernel-qcow2-linux-2d7cee5836d6d466829b255b1290c9386d4e884f.tar.xz
kernel-qcow2-linux-2d7cee5836d6d466829b255b1290c9386d4e884f.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 5803c1ebcefa..c233bceb3ccc 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -911,6 +911,7 @@ int mgmt_index_removed(u16 index);
int mgmt_powered(u16 index, u8 powered);
int mgmt_discoverable(u16 index, u8 discoverable);
int mgmt_connectable(u16 index, u8 connectable);
+int mgmt_write_scan_failed(u16 index, u8 scan, u8 status);
int mgmt_new_key(u16 index, struct link_key *key, u8 persistent);
int mgmt_connected(u16 index, bdaddr_t *bdaddr, u8 link_type);
int mgmt_disconnected(u16 index, bdaddr_t *bdaddr);