diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hci_event.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index bf3fbf9817b4..e47676128bb5 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -796,10 +796,14 @@ static inline void hci_conn_request_evt(struct hci_dev *hdev, struct sk_buff *sk | |||
796 | 796 | ||
797 | if (mask & HCI_LM_ACCEPT) { | 797 | if (mask & HCI_LM_ACCEPT) { |
798 | /* Connection accepted */ | 798 | /* Connection accepted */ |
799 | struct inquiry_entry *ie; | ||
799 | struct hci_conn *conn; | 800 | struct hci_conn *conn; |
800 | 801 | ||
801 | hci_dev_lock(hdev); | 802 | hci_dev_lock(hdev); |
802 | 803 | ||
804 | if ((ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr))) | ||
805 | memcpy(ie->data.dev_class, ev->dev_class, 3); | ||
806 | |||
803 | conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); | 807 | conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); |
804 | if (!conn) { | 808 | if (!conn) { |
805 | if (!(conn = hci_conn_add(hdev, ev->link_type, &ev->bdaddr))) { | 809 | if (!(conn = hci_conn_add(hdev, ev->link_type, &ev->bdaddr))) { |