提交 5a13b095 编写于 作者: A Andrei Emeltchenko 提交者: Gustavo F. Padovan

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: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 d095c1eb
...@@ -500,7 +500,7 @@ static void hci_setup_event_mask(struct hci_dev *hdev) ...@@ -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 /* CSR 1.1 dongles does not accept any bitfield so don't try to set
* any event mask for pre 1.2 devices */ * 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; return;
events[4] |= 0x01; /* Flow Specification Complete */ events[4] |= 0x01; /* Flow Specification Complete */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册