diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-05-12 14:06:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-12 14:06:10 -0400 |
commit | 15cb309614f35df344b9f06a9ea9f077d1e449db (patch) | |
tree | 85e244564f42381be5bf9d81ed867bb793fa976d /include/net | |
parent | 4daf50f20256e0022c87c1609226e971a70c82fd (diff) | |
parent | 55183d06cd1bd939ceccdad628b0aae12c86b803 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth-next-2.6
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 1 | ||||
-rw-r--r-- | include/net/bluetooth/l2cap.h | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 14cc3249c1eb..6c994c004d15 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -422,6 +422,7 @@ void hci_conn_check_pending(struct hci_dev *hdev); | |||
422 | 422 | ||
423 | struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, __u8 sec_level, __u8 auth_type); | 423 | struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, __u8 sec_level, __u8 auth_type); |
424 | int hci_conn_check_link_mode(struct hci_conn *conn); | 424 | int hci_conn_check_link_mode(struct hci_conn *conn); |
425 | int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level); | ||
425 | int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type); | 426 | int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type); |
426 | int hci_conn_change_link_key(struct hci_conn *conn); | 427 | int hci_conn_change_link_key(struct hci_conn *conn); |
427 | int hci_conn_switch_role(struct hci_conn *conn, __u8 role); | 428 | int hci_conn_switch_role(struct hci_conn *conn, __u8 role); |
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index c34b1c126363..d09c9b1118e3 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -350,6 +350,7 @@ struct l2cap_chan { | |||
350 | struct list_head srej_l; | 350 | struct list_head srej_l; |
351 | 351 | ||
352 | struct list_head list; | 352 | struct list_head list; |
353 | struct list_head global_l; | ||
353 | }; | 354 | }; |
354 | 355 | ||
355 | struct l2cap_conn { | 356 | struct l2cap_conn { |
@@ -441,7 +442,6 @@ static inline int l2cap_tx_window_full(struct l2cap_chan *ch) | |||
441 | #define __is_sar_start(ctrl) (((ctrl) & L2CAP_CTRL_SAR) == L2CAP_SDU_START) | 442 | #define __is_sar_start(ctrl) (((ctrl) & L2CAP_CTRL_SAR) == L2CAP_SDU_START) |
442 | 443 | ||
443 | extern int disable_ertm; | 444 | extern int disable_ertm; |
444 | extern struct bt_sock_list l2cap_sk_list; | ||
445 | 445 | ||
446 | int l2cap_init_sockets(void); | 446 | int l2cap_init_sockets(void); |
447 | void l2cap_cleanup_sockets(void); | 447 | void l2cap_cleanup_sockets(void); |
@@ -458,6 +458,9 @@ void l2cap_do_send(struct l2cap_chan *chan, struct sk_buff *skb); | |||
458 | void l2cap_streaming_send(struct l2cap_chan *chan); | 458 | void l2cap_streaming_send(struct l2cap_chan *chan); |
459 | int l2cap_ertm_send(struct l2cap_chan *chan); | 459 | int l2cap_ertm_send(struct l2cap_chan *chan); |
460 | 460 | ||
461 | int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm); | ||
462 | int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid); | ||
463 | |||
461 | void l2cap_sock_set_timer(struct sock *sk, long timeout); | 464 | void l2cap_sock_set_timer(struct sock *sk, long timeout); |
462 | void l2cap_sock_clear_timer(struct sock *sk); | 465 | void l2cap_sock_clear_timer(struct sock *sk); |
463 | void __l2cap_sock_close(struct sock *sk, int reason); | 466 | void __l2cap_sock_close(struct sock *sk, int reason); |
@@ -466,9 +469,9 @@ void l2cap_sock_init(struct sock *sk, struct sock *parent); | |||
466 | struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, | 469 | struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, |
467 | int proto, gfp_t prio); | 470 | int proto, gfp_t prio); |
468 | void l2cap_send_disconn_req(struct l2cap_conn *conn, struct l2cap_chan *chan, int err); | 471 | void l2cap_send_disconn_req(struct l2cap_conn *conn, struct l2cap_chan *chan, int err); |
469 | struct l2cap_chan *l2cap_chan_alloc(struct sock *sk); | 472 | struct l2cap_chan *l2cap_chan_create(struct sock *sk); |
470 | void l2cap_chan_del(struct l2cap_chan *chan, int err); | 473 | void l2cap_chan_del(struct l2cap_chan *chan, int err); |
471 | void l2cap_chan_free(struct l2cap_chan *chan); | 474 | void l2cap_chan_destroy(struct l2cap_chan *chan); |
472 | int l2cap_chan_connect(struct l2cap_chan *chan); | 475 | int l2cap_chan_connect(struct l2cap_chan *chan); |
473 | 476 | ||
474 | #endif /* __L2CAP_H */ | 477 | #endif /* __L2CAP_H */ |