diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-05-29 06:59:01 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-04 23:34:11 -0400 |
commit | 466f8004f364e9cb46d9124109972489eccfb404 (patch) | |
tree | 100233272787a891de4022eca15ba5c414719b2c /include | |
parent | 0181a70f549bd1683d18a5a1d79ac25bcdb76570 (diff) |
Bluetooth: A2MP: Create A2MP channel
Create and initialize fixed A2MP channel
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index c5726c24ee03..aaba222306b6 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -52,6 +52,8 @@ | |||
52 | #define L2CAP_CONN_TIMEOUT msecs_to_jiffies(40000) | 52 | #define L2CAP_CONN_TIMEOUT msecs_to_jiffies(40000) |
53 | #define L2CAP_INFO_TIMEOUT msecs_to_jiffies(4000) | 53 | #define L2CAP_INFO_TIMEOUT msecs_to_jiffies(4000) |
54 | 54 | ||
55 | #define L2CAP_A2MP_DEFAULT_MTU 670 | ||
56 | |||
55 | /* L2CAP socket address */ | 57 | /* L2CAP socket address */ |
56 | struct sockaddr_l2 { | 58 | struct sockaddr_l2 { |
57 | sa_family_t l2_family; | 59 | sa_family_t l2_family; |
@@ -236,6 +238,7 @@ struct l2cap_conn_rsp { | |||
236 | /* channel indentifier */ | 238 | /* channel indentifier */ |
237 | #define L2CAP_CID_SIGNALING 0x0001 | 239 | #define L2CAP_CID_SIGNALING 0x0001 |
238 | #define L2CAP_CID_CONN_LESS 0x0002 | 240 | #define L2CAP_CID_CONN_LESS 0x0002 |
241 | #define L2CAP_CID_A2MP 0x0003 | ||
239 | #define L2CAP_CID_LE_DATA 0x0004 | 242 | #define L2CAP_CID_LE_DATA 0x0004 |
240 | #define L2CAP_CID_LE_SIGNALING 0x0005 | 243 | #define L2CAP_CID_LE_SIGNALING 0x0005 |
241 | #define L2CAP_CID_SMP 0x0006 | 244 | #define L2CAP_CID_SMP 0x0006 |
@@ -758,5 +761,8 @@ int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len, | |||
758 | void l2cap_chan_busy(struct l2cap_chan *chan, int busy); | 761 | void l2cap_chan_busy(struct l2cap_chan *chan, int busy); |
759 | int l2cap_chan_check_security(struct l2cap_chan *chan); | 762 | int l2cap_chan_check_security(struct l2cap_chan *chan); |
760 | void l2cap_chan_set_defaults(struct l2cap_chan *chan); | 763 | void l2cap_chan_set_defaults(struct l2cap_chan *chan); |
764 | int l2cap_ertm_init(struct l2cap_chan *chan); | ||
765 | void l2cap_chan_add(struct l2cap_conn *conn, struct l2cap_chan *chan); | ||
766 | void l2cap_chan_del(struct l2cap_chan *chan, int err); | ||
761 | 767 | ||
762 | #endif /* __L2CAP_H */ | 768 | #endif /* __L2CAP_H */ |