diff options
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r-- | net/bluetooth/hci_sock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index 29827c77f6ce..d50e96136608 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c | |||
@@ -85,7 +85,8 @@ static struct bt_sock_list hci_sk_list = { | |||
85 | }; | 85 | }; |
86 | 86 | ||
87 | /* Send frame to RAW socket */ | 87 | /* Send frame to RAW socket */ |
88 | void hci_send_to_sock(struct hci_dev *hdev, struct sk_buff *skb) | 88 | void hci_send_to_sock(struct hci_dev *hdev, struct sk_buff *skb, |
89 | struct sock *skip_sk) | ||
89 | { | 90 | { |
90 | struct sock *sk; | 91 | struct sock *sk; |
91 | struct hlist_node *node; | 92 | struct hlist_node *node; |
@@ -97,6 +98,9 @@ void hci_send_to_sock(struct hci_dev *hdev, struct sk_buff *skb) | |||
97 | struct hci_filter *flt; | 98 | struct hci_filter *flt; |
98 | struct sk_buff *nskb; | 99 | struct sk_buff *nskb; |
99 | 100 | ||
101 | if (sk == skip_sk) | ||
102 | continue; | ||
103 | |||
100 | if (sk->sk_state != BT_BOUND || hci_pi(sk)->hdev != hdev) | 104 | if (sk->sk_state != BT_BOUND || hci_pi(sk)->hdev != hdev) |
101 | continue; | 105 | continue; |
102 | 106 | ||