Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCHv2 1/2] Bluetooth: Correct version check in hci_setup
@ 2011-11-24 12:36 Emeltchenko Andrei
  2011-11-24 12:36 ` [PATCHv2 2/2] Bluetooth: Remove magic bluetooth version numbers Emeltchenko Andrei
  0 siblings, 1 reply; 5+ messages in thread
From: Emeltchenko Andrei @ 2011-11-24 12:36 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

Check for hci_ver instead of lmp_ver

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
---
 net/bluetooth/hci_event.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index dfe6fbc..7da7ef6 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -562,7 +562,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) {
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-28 16:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 12:36 [PATCHv2 1/2] Bluetooth: Correct version check in hci_setup Emeltchenko Andrei
2011-11-24 12:36 ` [PATCHv2 2/2] Bluetooth: Remove magic bluetooth version numbers Emeltchenko Andrei
2011-11-25 12:03   ` Marcel Holtmann
2011-11-25 19:53     ` Andrei Emeltchenko
2011-11-28 16:09       ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox