Skip to content

Commit

Permalink
Bluetooth: trivial: correct check for LMP version
Browse files Browse the repository at this point in the history
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 <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Andrei Emeltchenko authored and Gustavo F. Padovan committed Dec 2, 2011
1 parent d095c1e commit 5a13b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5a13b09

Please sign in to comment.