Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH v2] Bluetooth: Latest firmware support for ath3k USB device
@ 2010-10-06  8:31 Suraj Sumangala
  2010-10-06  8:48 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Suraj Sumangala @ 2010-10-06  8:31 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Jothikumar.Mothilal, Suraj Sumangala

This patch add support for latest ath3k USB Bluetooth device firmare.
The firmware implements shared antenna support and
fixes few critical bugs.

Signed-off-by: Suraj Sumangala <suraj@atheros.com>
---
 drivers/bluetooth/ath3k.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c
index 128cae4..6eb4bcf 100644
--- a/drivers/bluetooth/ath3k.c
+++ b/drivers/bluetooth/ath3k.c
@@ -103,6 +103,8 @@ error:
 	return err;
 }
 
+#define ATH3K_FW	"ath3k-fw.fw"
+#define ATH3K_FW_LEGACY	"ath3k-1.fw"
 static int ath3k_probe(struct usb_interface *intf,
 			const struct usb_device_id *id)
 {
@@ -122,9 +124,12 @@ static int ath3k_probe(struct usb_interface *intf,
 
 	data->udev = udev;
 
-	if (request_firmware(&firmware, "ath3k-1.fw", &udev->dev) < 0) {
-		kfree(data);
-		return -EIO;
+	if (request_firmware(&firmware, ATH3K_FW, &udev->dev) < 0) {
+		if (request_firmware(&firmware, ATH3K_FW_LEGACY,
+							&udev->dev) < 0) {
+			kfree(data);
+			return -EIO;
+		}
 	}
 
 	size = max_t(uint, firmware->size, 4096);
-- 
1.7.0.4


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

end of thread, other threads:[~2010-10-06  8:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-06  8:31 [PATCH v2] Bluetooth: Latest firmware support for ath3k USB device Suraj Sumangala
2010-10-06  8:48 ` Marcel Holtmann

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