From 0453567b05b1c8c5ae20968ca5bbee86c2c32cb4 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 10 Jul 2004 03:12:28 +0200 Subject: [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 --- include/net/bluetooth/l2cap.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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; -- cgit v1.2.3