summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-07-10 03:12:28 +0200
committerMarcel Holtmann <holtmann@holtmann.org>2004-07-10 03:12:28 +0200
commit0453567b05b1c8c5ae20968ca5bbee86c2c32cb4 (patch)
tree10aa86510de712f7a9f63c8471f96a1b6e1c8eed /include
parent1dd7f7cab40e7e75f59e9fcff860b9bc65670e6e (diff)
[Bluetooth] Respond to L2CAP info requests
This patch adds the correct behavior when a L2CAP info request is sent by the peer. The answer should be a L2CAP info response with the result code set to "not supported". Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/l2cap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index d420305ff256..bcbf4411bf69 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -176,6 +176,14 @@ struct l2cap_info_rsp {
__u8 data[0];
} __attribute__ ((packed));
+/* info type */
+#define L2CAP_IT_CL_MTU 0x0001
+#define L2CAP_IT_FEAT_MASK 0x0002
+
+/* info result */
+#define L2CAP_IR_SUCCESS 0x0000
+#define L2CAP_IR_NOTSUPP 0x0001
+
/* ----- L2CAP connections ----- */
struct l2cap_chan_list {
struct sock *head;