diff options
Diffstat (limited to 'include/net/bluetooth/bluetooth.h')
| -rw-r--r-- | include/net/bluetooth/bluetooth.h | 31 | 
1 files changed, 19 insertions, 12 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 10d43d8c703..904777c1cd2 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h @@ -65,6 +65,7 @@ struct bt_security {  #define BT_SECURITY_LOW		1  #define BT_SECURITY_MEDIUM	2  #define BT_SECURITY_HIGH	3 +#define BT_SECURITY_FIPS	4  #define BT_DEFER_SETUP	7 @@ -115,6 +116,9 @@ struct bt_voice {  #define BT_VOICE_TRANSPARENT			0x0003  #define BT_VOICE_CVSD_16BIT			0x0060 +#define BT_SNDMTU		12 +#define BT_RCVMTU		13 +  __printf(1, 2)  int bt_info(const char *fmt, ...);  __printf(1, 2) @@ -197,8 +201,8 @@ static inline bool bdaddr_type_is_le(__u8 type)  	return false;  } -#define BDADDR_ANY   (&(bdaddr_t) {{0, 0, 0, 0, 0, 0} }) -#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff} }) +#define BDADDR_ANY  (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}}) +#define BDADDR_NONE (&(bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}})  /* Copy, swap, convert BD Address */  static inline int bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2) @@ -218,11 +222,10 @@ void baswap(bdaddr_t *dst, bdaddr_t *src);  struct bt_sock {  	struct sock sk; -	bdaddr_t    src; -	bdaddr_t    dst;  	struct list_head accept_q;  	struct sock *parent;  	unsigned long flags; +	void (*skb_msg_name)(struct sk_buff *, void *, int *);  };  enum { @@ -249,6 +252,7 @@ int  bt_sock_stream_recvmsg(struct kiocb *iocb, struct socket *sock,  uint bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);  int  bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);  int  bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo); +int  bt_sock_wait_ready(struct sock *sk, unsigned long flags);  void bt_accept_enqueue(struct sock *parent, struct sock *sk);  void bt_accept_unlink(struct sock *sk); @@ -282,8 +286,11 @@ struct bt_skb_cb {  	__u8 incoming;  	__u16 expect;  	__u8 force_active; +	struct l2cap_chan *chan;  	struct l2cap_ctrl control;  	struct hci_req_ctrl req; +	bdaddr_t bdaddr; +	__le16 psm;  };  #define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) @@ -331,16 +338,16 @@ out:  int bt_to_errno(__u16 code); -extern int hci_sock_init(void); -extern void hci_sock_cleanup(void); +int hci_sock_init(void); +void hci_sock_cleanup(void); -extern int bt_sysfs_init(void); -extern void bt_sysfs_cleanup(void); +int bt_sysfs_init(void); +void bt_sysfs_cleanup(void); -extern int  bt_procfs_init(struct net *net, const char *name, -			   struct bt_sock_list* sk_list, -			   int (* seq_show)(struct seq_file *, void *)); -extern void bt_procfs_cleanup(struct net *net, const char *name); +int bt_procfs_init(struct net *net, const char *name, +		   struct bt_sock_list *sk_list, +		   int (*seq_show)(struct seq_file *, void *)); +void bt_procfs_cleanup(struct net *net, const char *name);  extern struct dentry *bt_debugfs;  | 
