Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/2] Bluetooth: Correct version check in hci_setup
@ 2011-11-23  9:23 Emeltchenko Andrei
  2011-11-23  9:23 ` [PATCH 2/2] Bluetooth: Remove magic bluetooth version numbers Emeltchenko Andrei
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Emeltchenko Andrei @ 2011-11-23  9:23 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>
---
 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] 7+ messages in thread

end of thread, other threads:[~2011-12-02 11:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-23  9:23 [PATCH 1/2] Bluetooth: Correct version check in hci_setup Emeltchenko Andrei
2011-11-23  9:23 ` [PATCH 2/2] Bluetooth: Remove magic bluetooth version numbers Emeltchenko Andrei
2011-11-23 14:48   ` Marcel Holtmann
2011-11-23 15:19     ` Emeltchenko Andrei
2011-11-25 11:39       ` Marcel Holtmann
2011-11-23 14:47 ` [PATCH 1/2] Bluetooth: Correct version check in hci_setup Marcel Holtmann
2011-12-02 11:22 ` Gustavo Padovan

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