Bluetooth: Correct version check in hci_setup
Check for hci_ver instead of lmp_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>
This commit is contained in:
parent
54a8a79c55
commit
33cb722c22
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,7 @@ static void hci_setup(struct hci_dev *hdev)
|
||||||
{
|
{
|
||||||
hci_setup_event_mask(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);
|
hci_send_cmd(hdev, HCI_OP_READ_LOCAL_COMMANDS, 0, NULL);
|
||||||
|
|
||||||
if (hdev->features[6] & LMP_SIMPLE_PAIR) {
|
if (hdev->features[6] & LMP_SIMPLE_PAIR) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue