aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r--net/bluetooth/hci_event.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index c171c0798499..848045223e98 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -468,14 +468,13 @@ static void hci_cc_read_local_version(struct hci_dev *hdev, struct sk_buff *skb)
468 if (rp->status) 468 if (rp->status)
469 return; 469 return;
470 470
471 hdev->hci_ver = rp->hci_ver; 471 if (test_bit(HCI_SETUP, &hdev->dev_flags)) {
472 hdev->hci_rev = __le16_to_cpu(rp->hci_rev); 472 hdev->hci_ver = rp->hci_ver;
473 hdev->lmp_ver = rp->lmp_ver; 473 hdev->hci_rev = __le16_to_cpu(rp->hci_rev);
474 hdev->manufacturer = __le16_to_cpu(rp->manufacturer); 474 hdev->lmp_ver = rp->lmp_ver;
475 hdev->lmp_subver = __le16_to_cpu(rp->lmp_subver); 475 hdev->manufacturer = __le16_to_cpu(rp->manufacturer);
476 476 hdev->lmp_subver = __le16_to_cpu(rp->lmp_subver);
477 BT_DBG("%s manufacturer 0x%4.4x hci ver %d:%d", hdev->name, 477 }
478 hdev->manufacturer, hdev->hci_ver, hdev->hci_rev);
479} 478}
480 479
481static void hci_cc_read_local_commands(struct hci_dev *hdev, 480static void hci_cc_read_local_commands(struct hci_dev *hdev,