summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg2011-11-10 14:54:38 +0100
committerGustavo F. Padovan2011-11-10 21:05:37 +0100
commita8a1d19e9d00e2ec6f28b89133137390b1d293bd (patch)
treef0a9b29406b632ed0d1dc1ff23cd397c707cd305 /include
parentBluetooth: Fix deadlock with mgmt_pair_device (diff)
downloadkernel-qcow2-linux-a8a1d19e9d00e2ec6f28b89133137390b1d293bd.tar.gz
kernel-qcow2-linux-a8a1d19e9d00e2ec6f28b89133137390b1d293bd.tar.xz
kernel-qcow2-linux-a8a1d19e9d00e2ec6f28b89133137390b1d293bd.zip
Bluetooth: Add proper response to mgmt_remove_keys command
Since the command can fail we need to have a proper response with the remote address and a failure status for it. This also updates it to conform to the latest mgmt API spec. 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/mgmt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 76a3f162ebfe..e5a866a20eda 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -119,6 +119,10 @@ struct mgmt_cp_remove_keys {
bdaddr_t bdaddr;
__u8 disconnect;
} __packed;
+struct mgmt_rp_remove_keys {
+ bdaddr_t bdaddr;
+ __u8 status;
+};
#define MGMT_OP_DISCONNECT 0x000F
struct mgmt_cp_disconnect {