~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to net/bluetooth/hci_sock.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
};
86
86
 
87
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
91
        struct sock *sk;
91
92
        struct hlist_node *node;
97
98
                struct hci_filter *flt;
98
99
                struct sk_buff *nskb;
99
100
 
 
101
                if (sk == skip_sk)
 
102
                        continue;
 
103
 
100
104
                if (sk->sk_state != BT_BOUND || hci_pi(sk)->hdev != hdev)
101
105
                        continue;
102
106
 
857
861
        return err;
858
862
}
859
863
 
860
 
void __exit hci_sock_cleanup(void)
 
864
void hci_sock_cleanup(void)
861
865
{
862
866
        if (bt_sock_unregister(BTPROTO_HCI) < 0)
863
867
                BT_ERR("HCI socket unregistration failed");