Atheros AR5B22 WLAN+Bluetooth support on FreeBSD

Serge Semenenko serge.a1 at gmail.com
Sat Apr 20 11:17:18 UTC 2019


Hi

It works for me with such section in devd.conf

attach 200 {
       device-name "ubt[0-9]+";
       match "vendor" "0x0cf3";
       match "product" "0xe006";
       action "sleep 2 && /usr/sbin/ath3kfw -d $ugen && sleep 2 &&
/etc/rc.d/bluetooth quietstart $device-name";
};


More info:

#  uname -UK
1200505 1200505

#  pciconf -lv | tail -8
    subclass   = ethernet
ath0 at pci0:2:0:0: class=0x028000 card=0x03001028 chip=0x0034168c rev=0x01
hdr=0x00
    vendor     = 'Qualcomm Atheros'
    device     = 'AR9462 Wireless Network Adapter'
    class      = network

#  usbconfig list
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER
(5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <SunplusIT Inc HP HD Camera> at usbus0, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=ON (500mA)
ugen0.4: <vendor 0x138a product 0x003f> at usbus0, cfg=0 md=HOST spd=FULL
(12Mbps) pwr=ON (100mA)
ugen0.3: <vendor 0x0cf3 product 0xe006> at usbus0, cfg=0 md=HOST spd=FULL
(12Mbps) pwr=ON (100mA)

# ll /usr/share/firmware/ath3k/ar3k/
total 384
drwxr-xr-x  2 serge  wheel    512 17 лист.  2017 1020201coex/
-rw-r--r--  1 serge  wheel  55244 30 бер.   2017 AthrBT_0x01020001.dfu
-rw-r--r--  1 serge  wheel  40724 30 бер.   2017 AthrBT_0x01020200.dfu
-rw-r--r--  1 serge  wheel  48188 17 лист.  2017 AthrBT_0x01020201.dfu
-rw-r--r--  1 serge  wheel  36828 30 бер.   2017 AthrBT_0x11020000.dfu
-rw-r--r--  1 serge  wheel  46852 30 бер.   2017 AthrBT_0x11020100.dfu
-rw-r--r--  1 serge  wheel  40652 30 бер.   2017 AthrBT_0x31010000.dfu
-rw-r--r--  1 serge  wheel  37796 30 бер.   2017 AthrBT_0x31010100.dfu
-rw-r--r--  1 serge  wheel  31500 30 бер.   2017 AthrBT_0x41020000.dfu
-rw-r--r--  1 serge  wheel   1224 30 бер.   2017 ramps_0x01020001_26.dfu
-rw-r--r--  1 serge  wheel   1274 30 бер.   2017 ramps_0x01020200_26.dfu
-rw-r--r--  1 serge  wheel   1204 30 бер.   2017 ramps_0x01020200_40.dfu
-rw-r--r--  1 serge  wheel    264 30 бер.   2017 ramps_0x01020201_26.dfu
-rw-r--r--  1 serge  wheel    264 30 бер.   2017 ramps_0x01020201_40.dfu
-rw-r--r--  1 serge  wheel   1796 30 бер.   2017 ramps_0x11020000_40.dfu
-rw-r--r--  1 serge  wheel   1802 30 бер.   2017 ramps_0x11020100_40.dfu
-rw-r--r--  1 serge  wheel   1926 30 бер.   2017 ramps_0x31010000_40.dfu
-rw-r--r--  1 serge  wheel   1922 30 бер.   2017 ramps_0x31010100_40.dfu
-rw-r--r--  1 serge  wheel   1820 30 бер.   2017 ramps_0x41020000_40.dfu

And also i had to add the card to /usr/src/usr.sbin/bluetooth/ath3kfw

--- main.c.orig 2018-06-23 12:32:29.564631000 +0300
+++ main.c      2018-06-23 12:33:01.283400000 +0300
@@ -85,6 +85,7 @@
        { .vendor_id = 0x0CF3, .product_id = 0x817a, .is_3012 = 1 },
        { .vendor_id = 0x0cf3, .product_id = 0xe004, .is_3012 = 1 },
        { .vendor_id = 0x0cf3, .product_id = 0xe005, .is_3012 = 1 },
+        { .vendor_id = 0x0cf3, .product_id = 0xe006, .is_3012 = 1 },
        { .vendor_id = 0x0cf3, .product_id = 0xe003, .is_3012 = 1 },
        { .vendor_id = 0x13d3, .product_id = 0x3362, .is_3012 = 1 },
        { .vendor_id = 0x13d3, .product_id = 0x3375, .is_3012 = 1 },


More information about the freebsd-wireless mailing list