From: Andrei Emeltchenko Date: Thu, 1 Dec 2011 12:33:28 +0000 (+0200) Subject: Bluetooth: trivial: correct check for LMP version X-Git-Tag: v3.12-rc1~4160^2~44^2~71^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a13b09531420d230616bd524b68a5b0c23cd487;p=kernel%2Fkernel-generic.git Bluetooth: trivial: correct check for LMP version Make sure that code match exactly what comment says about pre 1.2 bluetooth version. Since this is HCI detail lmp_ver changed to hci_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 a3e83aa..35cb56e 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -500,7 +500,7 @@ static void hci_setup_event_mask(struct hci_dev *hdev) /* CSR 1.1 dongles does not accept any bitfield so don't try to set * any event mask for pre 1.2 devices */ - if (hdev->lmp_ver <= BLUETOOTH_VER_1_1) + if (hdev->hci_ver < BLUETOOTH_VER_1_2) return; events[4] |= 0x01; /* Flow Specification Complete */