From: Andrei Emeltchenko Date: Wed, 23 Nov 2011 09:23:34 +0000 (+0200) Subject: Bluetooth: Correct version check in hci_setup X-Git-Tag: v3.2~1^2^2~3^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33cb722c22f28964a501a56cc76397834c221c7a;p=platform%2Fkernel%2Flinux-stable.git Bluetooth: Correct version check in hci_setup Check for hci_ver instead of lmp_ver Signed-off-by: Andrei Emeltchenko Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index d7d96b6..643a41b 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -545,7 +545,7 @@ static void hci_setup(struct hci_dev *hdev) { hci_setup_event_mask(hdev); - if (hdev->lmp_ver > 1) + if (hdev->hci_ver > 1) hci_send_cmd(hdev, HCI_OP_READ_LOCAL_COMMANDS, 0, NULL); if (hdev->features[6] & LMP_SIMPLE_PAIR) {