diff options
Diffstat (limited to 'include/net/bluetooth/bluetooth.h')
-rw-r--r-- | include/net/bluetooth/bluetooth.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 10d43d8c7037..2a628b28249f 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h | |||
@@ -197,8 +197,8 @@ static inline bool bdaddr_type_is_le(__u8 type) | |||
197 | return false; | 197 | return false; |
198 | } | 198 | } |
199 | 199 | ||
200 | #define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0} }) | 200 | #define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}}) |
201 | #define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff} }) | 201 | #define BDADDR_NONE (&(bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}}) |
202 | 202 | ||
203 | /* Copy, swap, convert BD Address */ | 203 | /* Copy, swap, convert BD Address */ |
204 | static inline int bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2) | 204 | static inline int bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2) |
@@ -218,11 +218,10 @@ void baswap(bdaddr_t *dst, bdaddr_t *src); | |||
218 | 218 | ||
219 | struct bt_sock { | 219 | struct bt_sock { |
220 | struct sock sk; | 220 | struct sock sk; |
221 | bdaddr_t src; | ||
222 | bdaddr_t dst; | ||
223 | struct list_head accept_q; | 221 | struct list_head accept_q; |
224 | struct sock *parent; | 222 | struct sock *parent; |
225 | unsigned long flags; | 223 | unsigned long flags; |
224 | void (*skb_msg_name)(struct sk_buff *, void *, int *); | ||
226 | }; | 225 | }; |
227 | 226 | ||
228 | enum { | 227 | enum { |
@@ -249,6 +248,7 @@ int bt_sock_stream_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
249 | uint bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait); | 248 | uint bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait); |
250 | int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); | 249 | int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); |
251 | int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo); | 250 | int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo); |
251 | int bt_sock_wait_ready(struct sock *sk, unsigned long flags); | ||
252 | 252 | ||
253 | void bt_accept_enqueue(struct sock *parent, struct sock *sk); | 253 | void bt_accept_enqueue(struct sock *parent, struct sock *sk); |
254 | void bt_accept_unlink(struct sock *sk); | 254 | void bt_accept_unlink(struct sock *sk); |
@@ -282,8 +282,11 @@ struct bt_skb_cb { | |||
282 | __u8 incoming; | 282 | __u8 incoming; |
283 | __u16 expect; | 283 | __u16 expect; |
284 | __u8 force_active; | 284 | __u8 force_active; |
285 | struct l2cap_chan *chan; | ||
285 | struct l2cap_ctrl control; | 286 | struct l2cap_ctrl control; |
286 | struct hci_req_ctrl req; | 287 | struct hci_req_ctrl req; |
288 | bdaddr_t bdaddr; | ||
289 | __le16 psm; | ||
287 | }; | 290 | }; |
288 | #define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) | 291 | #define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) |
289 | 292 | ||
@@ -331,16 +334,16 @@ out: | |||
331 | 334 | ||
332 | int bt_to_errno(__u16 code); | 335 | int bt_to_errno(__u16 code); |
333 | 336 | ||
334 | extern int hci_sock_init(void); | 337 | int hci_sock_init(void); |
335 | extern void hci_sock_cleanup(void); | 338 | void hci_sock_cleanup(void); |
336 | 339 | ||
337 | extern int bt_sysfs_init(void); | 340 | int bt_sysfs_init(void); |
338 | extern void bt_sysfs_cleanup(void); | 341 | void bt_sysfs_cleanup(void); |
339 | 342 | ||
340 | extern int bt_procfs_init(struct net *net, const char *name, | 343 | int bt_procfs_init(struct net *net, const char *name, |
341 | struct bt_sock_list* sk_list, | 344 | struct bt_sock_list *sk_list, |
342 | int (* seq_show)(struct seq_file *, void *)); | 345 | int (*seq_show)(struct seq_file *, void *)); |
343 | extern void bt_procfs_cleanup(struct net *net, const char *name); | 346 | void bt_procfs_cleanup(struct net *net, const char *name); |
344 | 347 | ||
345 | extern struct dentry *bt_debugfs; | 348 | extern struct dentry *bt_debugfs; |
346 | 349 | ||