On Fri, Nov 17, 2017 at 12:28:35AM +0100, Stefan Sperling wrote:
> 
> This diff switches athn(4) USB devices to open source firmware.
> 
> I only have an AR9271 device which I can test with:
> athn0 at uhub1 port 2 configuration 1 interface 0 "ATHEROS USB2.0 WLAN" rev 
> 2.00/1.08 addr 3
> athn0: AR9271 rev 1 (1T1R), ROM rev 13, address xx:xx:xx:xx:xx:xx
> 
> The diff switches AR7010 devices over as well because this new code
> will *not* support the old binary-only firmware anyway.
> But it is possible that AR7010 devices don't work yet with this diff.
> Can anybody help and test such a device? And if anyone would like to
> donate an AR7010 device for me to develop with, that would be appreciated.
> 
> The new firmware package 'athn-firmware-1.1p3', which contains the open
> firmware files, is required. Specifically, the diff needs these files
> from the new firmware package:
> 
>   /etc/firmware/athn-open-ar7010
>   /etc/firmware/athn-open-ar9271
> 
> The firmware mirrors currently still ship version 1.1p2 which lacks the
> open firmware files. But the pre-built firmware images are already part
> of package mirrors, so a new firmware package can be built without
> having to first cross-compile the firmware, like this:
> 
>   pkg_delete athn-firmware  # else conflict during install, no idea why
>   cd /usr/ports/sysutils/firmware/athn
>   make FETCH_PACKAGES=Yes install
> 
> Thanks again to bentley@ for porting both the required cross toolchain
> and the open ath9k firmware during p2k17!

Thanks for stepping up and getting this done.  Tested on TP-LINK TL-WN722N,
and it works for me :)

$ dmesg | grep athn0
athn0 at uhub0 port 4 configuration 1 interface 0 "ATHEROS USB2.0 WLAN" rev 
2.00/1.08 addr 3
athn0: AR9271 rev 1 (1T1R), ROM rev 13, address d8:5d:4c:98:60:f9

$ pkg_info -L athn-firmware-1.1p3
Information for inst:athn-firmware-1.1p3

Files:
/etc/firmware/athn-ar7010
/etc/firmware/athn-open-ar7010
/etc/firmware/athn-ar7010-11
/etc/firmware/athn-ar9271
/etc/firmware/athn-open-ar9271
/etc/firmware/athn-license

$ ifconfig athn0
athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr d8:5d:4c:98:60:f9
        index 6 priority 4 llprio 3
        groups: wlan egress
        media: IEEE802.11 autoselect (HT-MCS0 mode 11n)
        status: active
        ieee80211: nwid bf-2.4g chan 3 bssid f4:28:53:6c:04:1a -20dBm wpakey 
0xd5d0c0f79932dd4619e08d995981d9aa9acc622d6f3a40f0dd4fb2e8bdbc8c98 wpaprotos 
wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
        inet 172.29.30.123 netmask 0xffffff00 broadcast 172.29.30.255

Reply via email to