All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: btmrvl: devices are either BR/EDR or AMPs
@ 2010-08-09 21:43 David Vrabel
  2010-08-10 12:13 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: David Vrabel @ 2010-08-09 21:43 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Marcel Holtmann

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]


-- 
David Vrabel, Senior Software Engineer, Drivers
CSR, Churchill House, Cambridge Business Park,  Tel: +44 (0)1223 692562
Cowley Road, Cambridge, CB4 0WZ                 http://www.csr.com/


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom

[-- Attachment #2: 0001-Bluetooth-btmrvl-devices-are-either-BR-EDR-or-AMPs.patch --]
[-- Type: text/x-diff, Size: 981 bytes --]

>From 5d16a92e61d8457077d0235d6b7006b824ff6891 Mon Sep 17 00:00:00 2001
From: David Vrabel <dv02@dv02-laptop.(none)>
Date: Mon, 9 Aug 2010 22:39:43 +0100
Subject: [PATCH] Bluetooth: btmrvl: devices are either BR/EDR or AMPs

Signed-off-by: David Vrabel <david.vrabel@csr.com>
---
 drivers/bluetooth/btmrvl_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bluetooth/btmrvl_main.c b/drivers/bluetooth/btmrvl_main.c
index 0d32ec8..548d1d9 100644
--- a/drivers/bluetooth/btmrvl_main.c
+++ b/drivers/bluetooth/btmrvl_main.c
@@ -117,8 +117,8 @@ int btmrvl_process_event(struct btmrvl_private *priv, struct sk_buff *skb)
 				(event->data[2] == MODULE_ALREADY_UP)) ?
 				"Bring-up succeed" : "Bring-up failed");
 
-			if (event->length > 3)
-				priv->btmrvl_dev.dev_type = event->data[3];
+			if (event->length > 3 && event->data[3])
+				priv->btmrvl_dev.dev_type = HCI_AMP;
 			else
 				priv->btmrvl_dev.dev_type = HCI_BREDR;
 
-- 
1.5.4.3


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

* Re: [PATCH] Bluetooth: btmrvl: devices are either BR/EDR or AMPs
  2010-08-09 21:43 [PATCH] Bluetooth: btmrvl: devices are either BR/EDR or AMPs David Vrabel
@ 2010-08-10 12:13 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2010-08-10 12:13 UTC (permalink / raw)
  To: David Vrabel; +Cc: linux-bluetooth

Hi David,

> From 5d16a92e61d8457077d0235d6b7006b824ff6891 Mon Sep 17 00:00:00 2001
> From: David Vrabel <dv02@dv02-laptop.(none)>
> Date: Mon, 9 Aug 2010 22:39:43 +0100
> Subject: [PATCH] Bluetooth: btmrvl: devices are either BR/EDR or AMPs
> 
> Signed-off-by: David Vrabel <david.vrabel@csr.com>
> ---
>  drivers/bluetooth/btmrvl_main.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

I fixed this up in your original patch.

Regards

Marcel



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

end of thread, other threads:[~2010-08-10 12:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-09 21:43 [PATCH] Bluetooth: btmrvl: devices are either BR/EDR or AMPs David Vrabel
2010-08-10 12:13 ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.