l2cap.h (2ea664822af6705574dfbbf8c77fc7d75a94e9b3) l2cap.h (38094c75b54c52b45f48b80fd2f6d1138a1b9b2b)
1/*
2 BlueZ - Bluetooth protocol stack for Linux
3 Copyright (C) 2000-2001 Qualcomm Incorporated
4 Copyright (C) 2009-2010 Gustavo F. Padovan <gustavo@padovan.org>
5 Copyright (C) 2010 Google Inc.
6
7 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
8

--- 80 unchanged lines hidden (view full) ---

89#define L2CAP_CONF_REQ 0x04
90#define L2CAP_CONF_RSP 0x05
91#define L2CAP_DISCONN_REQ 0x06
92#define L2CAP_DISCONN_RSP 0x07
93#define L2CAP_ECHO_REQ 0x08
94#define L2CAP_ECHO_RSP 0x09
95#define L2CAP_INFO_REQ 0x0a
96#define L2CAP_INFO_RSP 0x0b
1/*
2 BlueZ - Bluetooth protocol stack for Linux
3 Copyright (C) 2000-2001 Qualcomm Incorporated
4 Copyright (C) 2009-2010 Gustavo F. Padovan <gustavo@padovan.org>
5 Copyright (C) 2010 Google Inc.
6
7 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
8

--- 80 unchanged lines hidden (view full) ---

89#define L2CAP_CONF_REQ 0x04
90#define L2CAP_CONF_RSP 0x05
91#define L2CAP_DISCONN_REQ 0x06
92#define L2CAP_DISCONN_RSP 0x07
93#define L2CAP_ECHO_REQ 0x08
94#define L2CAP_ECHO_RSP 0x09
95#define L2CAP_INFO_REQ 0x0a
96#define L2CAP_INFO_RSP 0x0b
97#define L2CAP_CREATE_CHAN_REQ 0x0c
98#define L2CAP_CREATE_CHAN_RSP 0x0d
99#define L2CAP_MOVE_CHAN_REQ 0x0e
100#define L2CAP_MOVE_CHAN_RSP 0x0f
101#define L2CAP_MOVE_CHAN_CFM 0x10
102#define L2CAP_MOVE_CHAN_CFM_RSP 0x11
97#define L2CAP_CONN_PARAM_UPDATE_REQ 0x12
98#define L2CAP_CONN_PARAM_UPDATE_RSP 0x13
99
100/* L2CAP extended feature mask */
101#define L2CAP_FEAT_FLOWCTL 0x00000001
102#define L2CAP_FEAT_RETRANS 0x00000002
103#define L2CAP_FEAT_BIDIR_QOS 0x00000004
104#define L2CAP_FEAT_ERTM 0x00000008

--- 107 unchanged lines hidden (view full) ---

212#define L2CAP_CID_SIGNALING 0x0001
213#define L2CAP_CID_CONN_LESS 0x0002
214#define L2CAP_CID_LE_DATA 0x0004
215#define L2CAP_CID_LE_SIGNALING 0x0005
216#define L2CAP_CID_SMP 0x0006
217#define L2CAP_CID_DYN_START 0x0040
218#define L2CAP_CID_DYN_END 0xffff
219
103#define L2CAP_CONN_PARAM_UPDATE_REQ 0x12
104#define L2CAP_CONN_PARAM_UPDATE_RSP 0x13
105
106/* L2CAP extended feature mask */
107#define L2CAP_FEAT_FLOWCTL 0x00000001
108#define L2CAP_FEAT_RETRANS 0x00000002
109#define L2CAP_FEAT_BIDIR_QOS 0x00000004
110#define L2CAP_FEAT_ERTM 0x00000008

--- 107 unchanged lines hidden (view full) ---

218#define L2CAP_CID_SIGNALING 0x0001
219#define L2CAP_CID_CONN_LESS 0x0002
220#define L2CAP_CID_LE_DATA 0x0004
221#define L2CAP_CID_LE_SIGNALING 0x0005
222#define L2CAP_CID_SMP 0x0006
223#define L2CAP_CID_DYN_START 0x0040
224#define L2CAP_CID_DYN_END 0xffff
225
220/* connect result */
226/* connect/create channel results */
221#define L2CAP_CR_SUCCESS 0x0000
222#define L2CAP_CR_PEND 0x0001
223#define L2CAP_CR_BAD_PSM 0x0002
224#define L2CAP_CR_SEC_BLOCK 0x0003
225#define L2CAP_CR_NO_MEM 0x0004
227#define L2CAP_CR_SUCCESS 0x0000
228#define L2CAP_CR_PEND 0x0001
229#define L2CAP_CR_BAD_PSM 0x0002
230#define L2CAP_CR_SEC_BLOCK 0x0003
231#define L2CAP_CR_NO_MEM 0x0004
232#define L2CAP_CR_BAD_AMP 0x0005
226
233
227/* connect status */
234/* connect/create channel status */
228#define L2CAP_CS_NO_INFO 0x0000
229#define L2CAP_CS_AUTHEN_PEND 0x0001
230#define L2CAP_CS_AUTHOR_PEND 0x0002
231
232struct l2cap_conf_req {
233 __le16 dcid;
234 __le16 flags;
235 __u8 data[0];

--- 78 unchanged lines hidden (view full) ---

314} __packed;
315
316struct l2cap_info_rsp {
317 __le16 type;
318 __le16 result;
319 __u8 data[0];
320} __packed;
321
235#define L2CAP_CS_NO_INFO 0x0000
236#define L2CAP_CS_AUTHEN_PEND 0x0001
237#define L2CAP_CS_AUTHOR_PEND 0x0002
238
239struct l2cap_conf_req {
240 __le16 dcid;
241 __le16 flags;
242 __u8 data[0];

--- 78 unchanged lines hidden (view full) ---

321} __packed;
322
323struct l2cap_info_rsp {
324 __le16 type;
325 __le16 result;
326 __u8 data[0];
327} __packed;
328
329struct l2cap_create_chan_req {
330 __le16 psm;
331 __le16 scid;
332 __u8 amp_id;
333} __packed;
334
335struct l2cap_create_chan_rsp {
336 __le16 dcid;
337 __le16 scid;
338 __le16 result;
339 __le16 status;
340} __packed;
341
342struct l2cap_move_chan_req {
343 __le16 icid;
344 __u8 dest_amp_id;
345} __packed;
346
347struct l2cap_move_chan_rsp {
348 __le16 icid;
349 __le16 result;
350} __packed;
351
352#define L2CAP_MR_SUCCESS 0x0000
353#define L2CAP_MR_PEND 0x0001
354#define L2CAP_MR_BAD_ID 0x0002
355#define L2CAP_MR_SAME_ID 0x0003
356#define L2CAP_MR_NOT_SUPP 0x0004
357#define L2CAP_MR_COLLISION 0x0005
358#define L2CAP_MR_NOT_ALLOWED 0x0006
359
360struct l2cap_move_chan_cfm {
361 __le16 icid;
362 __le16 result;
363} __packed;
364
365#define L2CAP_MC_CONFIRMED 0x0000
366#define L2CAP_MC_UNCONFIRMED 0x0001
367
368struct l2cap_move_chan_cfm_rsp {
369 __le16 icid;
370} __packed;
371
322/* info type */
323#define L2CAP_IT_CL_MTU 0x0001
324#define L2CAP_IT_FEAT_MASK 0x0002
325#define L2CAP_IT_FIXED_CHAN 0x0003
326
327/* info result */
328#define L2CAP_IR_SUCCESS 0x0000
329#define L2CAP_IR_NOTSUPP 0x0001

--- 428 unchanged lines hidden ---
372/* info type */
373#define L2CAP_IT_CL_MTU 0x0001
374#define L2CAP_IT_FEAT_MASK 0x0002
375#define L2CAP_IT_FIXED_CHAN 0x0003
376
377/* info result */
378#define L2CAP_IR_SUCCESS 0x0000
379#define L2CAP_IR_NOTSUPP 0x0001

--- 428 unchanged lines hidden ---