LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   AR9271 driver (http://www.linuxquestions.org/questions/slackware-14/ar9271-driver-4175430121/)

slackunix 10-02-2012 01:45 PM

AR9271 driver
 
Hello, is there any driver developed in Slackware for wifi cards with this chipset (Atheros-AR9271?? Thanks!

slackunix 10-02-2012 05:03 PM

Eh sorry I saw this thread, I'll read it to find out something about, thanks!
http://www.linuxquestions.org/questi...-a-4175419786/

slackunix 10-03-2012 05:33 PM

Well, I have downloaded compat-wireless, and when execute "./driver-select ath9k" it gives me an error "Must run ./driver-select from the compat-drivers top level directory" that I do not understand how to resolve it. Any help??

I tried this thread but I could not get good result:

http://www.ubuntu-es.org/node/168087#.UGy6UmMxyVs

gobo7 10-03-2012 08:49 PM

Quote:

Originally Posted by slackunix (Post 4796468)
Well, I have downloaded compat-wireless, and when execute "./driver-select ath9k" it gives me an error "Must run ./driver-select from the compat-drivers top level directory" that I do not understand how to resolve it. Any help??

I tried this thread but I could not get good result:

http://www.ubuntu-es.org/node/168087#.UGy6UmMxyVs

i messed with an ar9271 usb adapter a month or so ago. it looks like i'm missing a page from my notes, but it went something like --

download ar9271.fw from http://git.kernel.org/?p=linux/kerne...are.git;a=tree

copy ar9271.fw into /lib/firmware.

restart and look at ifconfig -a to see if wlan0 is now listed. if it is, then you can start to configure rc.inet1.conf.

i think i'm missing a step. but i did get it to work with that firmware. maybe this will help a little.

slackunix 10-04-2012 05:30 AM

download ar9271.fw from http://git.kernel.org/?p=linux/kerne...are.git;a=tree

Thanks, I did it, but nothing, the interface is not visible (with "iwconfig" from console), although the system recognizes it:

root@darkstar:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0cf3:b002 Atheros Communications, Inc. Ubiquiti WiFiStation 802.11n [Atheros AR9271]


root@darkstar:~# dmesg | grep usb
.......
.......
[ 4.368187] usb 1-5: Product: WiFiStation
[ 4.368278] usb 1-5: Manufacturer: UBIQUITI
[ 4.368368] usb 1-5: SerialNumber: 11111
[ 159.078875] usbcore: registered new interface driver ath9k_hif_usb


Although I load driver:

root@darkstar:~# modprobe ath9k
root@darkstar:~# modprobe ath9k_hif_usb

Nothing of nothing

gobo7 10-04-2012 10:28 AM

Quote:

Originally Posted by slackunix (Post 4796900)
download ar9271.fw from http://git.kernel.org/?p=linux/kerne...are.git;a=tree

Thanks, I did it, but nothing, the interface is not visible (with "iwconfig" from console), although the system recognizes it:

root@darkstar:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0cf3:b002 Atheros Communications, Inc. Ubiquiti WiFiStation 802.11n [Atheros AR9271]


root@darkstar:~# dmesg | grep usb
.......
.......
[ 4.368187] usb 1-5: Product: WiFiStation
[ 4.368278] usb 1-5: Manufacturer: UBIQUITI
[ 4.368368] usb 1-5: SerialNumber: 11111
[ 159.078875] usbcore: registered new interface driver ath9k_hif_usb


Although I load driver:

root@darkstar:~# modprobe ath9k
root@darkstar:~# modprobe ath9k_hif_usb

Nothing of nothing

ok, a couple of things.

first, grab a copy of this document:
http://alien.slackbook.org/dokuwiki/...ckware:network
there are lots of little details in it that need to be known.

make sure the modules are not already loaded with lsmod.
Code:

# lsmod | grep ath9
ath9k                  73302  0
mac80211              181473  1 ath9k
ath9k_common            1497  1 ath9k
ath9k_hw              251635  2 ath9k,ath9k_common
ath                    11089  2 ath9k,ath9k_hw
cfg80211              122542  3 ath9k,mac80211,ath

i'm not sure, but i don't think iwconfig, iwlist, etc. will work until the interface is UP. see what interfaces your system believes are installed with ifconfig -a. dmesg | grep -i wlan may also give some clues.
Code:

# ifconfig -a                                             
eth0      Link encap:Ethernet  HWaddr 00:23:24:18:B9:EE                       
          BROADCAST MULTICAST  MTU:1500  Metric:1                             
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                   
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                 
          collisions:0 txqueuelen:1000                                         
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)                               
          Interrupt:17                                                         

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host   
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:760 (760.0 b)  TX bytes:760 (760.0 b)

wlan0    Link encap:Ethernet  HWaddr 00:1D:6A:5F:DD:7A
          inet addr:192.168.1.52  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21d:6aff:fe5f:dd7a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2357 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2364 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:222847 (217.6 Kb)  TX bytes:431373 (421.2 Kb)

notice that eth0 is found but not doing anything. it is not configured. your wireless interface would look similar.

lastly, i tried the ar9271 adapter on two different systems. slackware 13.37 and ubuntu server 12.04. i know that under ubuntu i had to get the firmware. but under slack 13.37, it may have worked out of the box. just can't remember. i know how to keep better notes, but i didn't in this case.

slackunix 10-04-2012 03:48 PM

Firt thing, the driver ath9k is not loaded automaticly, but I load it manually, as I have said before "modprobe ath9k", but the interface is not showed with "iwconfig", when I run "ifconfig -a", it shows me:
eth0
lo
wlan0 (it is pci card ipw3945)

May be, when I installed slackware 13.37 (32bit), clicked off the installation of driver AR9271, is the raison is not working "out of the box", so is difficult to find out the solution more if I am newbie with linux.

Didier Spaier 10-04-2012 04:22 PM

I think that the good kernel module for you card is ath9k_htc, not ath9k, see here vs there. To make sure type the following command and send back here the output:
Code:

lspci -knn|grep -iA3 net
This will also give the device id, allowing us to check that your chipset be supported looking for it there as well as with following command: "modinfo ath9k_htc|grep -i <device_id>"

Also, if I am right the good firmware that you should put in /lib/firmware is htc_9271.fw that you can download.

EDIT As noticed by the OP (see his next post), the lspci command is irrelevant in that case, should have been "lsusb".

slackunix 10-04-2012 04:52 PM

Hi, the device is not pci is usb, so this command is not valid (lspci), I downloaded driver htc_9271.fw and cut and paste en "lib/firmware". I tried with "lsusb -v | grep ubiqui" and it gives me:
Code:

root@darkstar:/# lsusb -v | grep Ubiqui 
Bus 001 Device 003: ID 0cf3:b002 Atheros Communications, Inc. Ubiquiti WiFiStation 802.11n [Atheros AR9271]
  idProduct          0xb002 Ubiquiti WiFiStation 802.11n [Atheros AR9271]
root@darkstar:/#

So, I think is not supported?? I see the first 4 keys "0cf3" but I do not see the second half "b002" in "http://www.linuxwireless.org/en/users/Drivers/ath9k_htc/devices"


Is correct my conclusion?? Thanks in advance all people ( Didier Spaier and gobo7). It was a pleasure!


All times are GMT -5. The time now is 07:58 PM.