Sunday, April 17, 2011

Debian 6 with Atheros 3011 ath3k USB Bluetooth Dongle

I picked up a USB Asus Bluetooth dongle from Fry's, and found that it didn't work on my Debian 6 amd64 box.

Here's how to get it working:

Grab the firmware:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git
Copy the ath3k firmware to /lib/firmware:
$ sudo cp linux-firmware/ath3k-1.fw /lib/firmware
Grab compat-wireless:
$ wget http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.39/compat-wireless-2.6.39-rc1-3-s.tar.bz2

Compile compat-wirless:
$ tar jxfv  http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.39/compat-wireless-2.6.39-rc1-3-s.tar.bz2
$ cd compat-wireless-2.6.39-rc1-3-s
$ make
$ sudo make install

Plug in your USB dongle, and see if it works:
$ sudo hciconfig
You should see something like:

hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:02:72:xx:xx:xx  ACL MTU: 1022:8  SCO MTU: 121:3
        UP RUNNING PSCAN
        RX bytes:1292 acl:0 sco:0 events:39 errors:0
        TX bytes:1602 acl:0 sco:0 commands:37 errors:0