]> Pileus Git - ~andy/linux/blobdiff - net/bluetooth/hci_event.c
Bluetooth: Add blacklist support for incoming connections
[~andy/linux] / net / bluetooth / hci_event.c
index 786b5de0bac42819ae3e207c942840a69f2c13da..43feeef3c498d88edf5da95d7d1bb388c4887c84 100644 (file)
@@ -952,7 +952,7 @@ static inline void hci_conn_request_evt(struct hci_dev *hdev, struct sk_buff *sk
 
        mask |= hci_proto_connect_ind(hdev, &ev->bdaddr, ev->link_type);
 
-       if (mask & HCI_LM_ACCEPT) {
+       if ((mask & HCI_LM_ACCEPT) && !hci_blacklist_lookup(hdev, &ev->bdaddr)) {
                /* Connection accepted */
                struct inquiry_entry *ie;
                struct hci_conn *conn;