Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 278385

Summary: ebuild request: Atheros ar9170 module and firmware
Product: Gentoo Linux Reporter: Kovich Ian <kovich.ian>
Component: [OLD] Core systemAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: bugs, dexy.31337, kovich.ian, m.debruijne, zerochaos
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kovich Ian 2009-07-20 06:41:35 UTC
Please help to provide the ebuild for ar9170 firmware.
Also, I download the firmware from linux-wireless and use the module from gentoo-sources-2.6.30, wl tool, which cannot let my dongle work normally.
By dmesg, ar9170usb module try to do site survey and always return nothing.

May attach the detail log for this issue.

Reproducible: Always

Steps to Reproduce:
1. modprobe nl80211, ar9170usb
2. wl wlanX scan
3. No AP is scanned.




My platform is AsRock ION 330.
Comment 1 Kovich Ian 2009-07-24 14:31:04 UTC
Plug the dongle.

dmesg

[75289.032051] usb 1-2: new high speed USB device using ehci_hcd and address 10
[75289.198347] usb 1-2: New USB device found, idVendor=07d1, idProduct=3c10
[75289.198355] usb 1-2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[75289.198360] usb 1-2: Product: USB2.0 WLAN
[75289.198364] usb 1-2: Manufacturer: ATHER
[75289.198368] usb 1-2: SerialNumber: 12345
[75289.198623] usb 1-2: configuration #1 chosen from 1 choice
[75289.302045] usb 1-2: reset high speed USB device using ehci_hcd and address 10
[75290.457041] usb 1-2: firmware: requesting ar9170-1.fw
[75290.526690] usb 1-2: firmware: requesting ar9170-2.fw
[75290.966468] phy2: Selected rate control algorithm 'minstrel'
[75290.969195] Registered led device: ar9170-phy2::tx
[75290.969261] Registered led device: ar9170-phy2::assoc
[75290.969268] usb 1-2: Atheros AR9170 is registered as 'phy2'
Comment 2 Kovich Ian 2009-07-24 14:33:49 UTC
ifconfig wlan1 up

[75558.441523] ADDRCONF(NETDEV_UP): wlan1: link is not ready
Comment 3 Denis Loginov 2009-07-24 14:36:54 UTC
what's the output of iwconfig ?
Comment 4 Kovich Ian 2009-07-24 14:38:13 UTC
sabayon gcc # lsusb
Bus 001 Device 010: ID 07d1:3c10 D-Link System 
Bus 001 Device 009: ID 13fd:1240 Initio Corporation 
Bus 001 Device 008: ID 05e3:0702 Genesys Logic, Inc. USB 2.0 IDE Adapter
Bus 001 Device 007: ID 0bda:8189 Realtek Semiconductor Corp. RTL8187B Wireless 802.11g 54Mbps Network Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 046d:c508 Logitech, Inc. Cordless Trackball
Bus 001 Device 003: ID 05e3:0660 Genesys Logic, Inc. USB 2.0 Hub
Bus 002 Device 002: ID 0603:00f2 Novatek Microelectronics Corp. 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Comment 5 Kovich Ian 2009-07-24 14:38:43 UTC
iwconfig 
----------------------
lo        no wireless extensions.

eth0      no wireless extensions.

pan0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"dd-wrt"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:1E:E5:21:61:93   
          Bit Rate=11 Mb/s   Tx-Power=27 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=63/70  Signal level=-47 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wmaster1  no wireless extensions.

wlan1     IEEE 802.11abg  ESSID:"dd-wrt"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=18 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Comment 6 Kovich Ian 2009-07-24 14:39:50 UTC
#iwlist phy2 scan
phy2      Interface doesn't support scanning.

#iwlist wlan1 scan
wlan1     No scan results
Comment 7 Kovich Ian 2009-07-24 14:51:11 UTC
Success case under ubuntu.

http://forum.ubuntuusers.de/topic/netgear-wlan-usb-stick-wn111v2-mit-atheros-
ch/3/#post-1874262
Comment 8 Dex 2009-10-26 18:49:17 UTC
I've managed to make ar9170 TP-Link TL-WN821N to work under gentoo, you can check it here http://en.gentoo-wiki.com/wiki/TL-WN821N.
Comment 9 Kovich Ian 2009-11-04 03:05:56 UTC
Need the ebuild for dongle listed below with Atheros WNIC driver and firmware.

D-Link DWA-160

TP-Link TL-WN821N

Refer: 
http://linuxwireless.org/en/users/Drivers/ar9170
Comment 10 Markus Meier gentoo-dev 2009-11-04 08:13:08 UTC
please do not add archteams to such bugs.
Comment 11 Kelly Price 2010-05-16 15:19:39 UTC
Is this under the Gentoo kernel or the Vanilla kernel?  According to the Linux Wireless site, support (sans firmware) is in kernel 2.6.31.  Enhanced versions in 2.6.32.

Comment 12 Anton Bolshakov 2011-05-02 03:42:32 UTC
As a quick workaround you can emerge sys-kernel/linux-firmware (the current is 20110429) which includes all different firmware in one.
The relevant files seems are ar9170-1.fw, ar9170-2.fw

I found a firmware for my http://www.ubnt.com/wifistation (ar9271.fw, htc_9271.fw) in there too.
Comment 13 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-08 21:46:00 UTC
all appropriate firmware is in linux-firmware, please install that. Additionally ar9170 is deprecated in favor of carl9170 (which has firmware linux-firmware as well).