Newbie
joerace
Posts: 8
Registered: ‎08-04-2010
Posts: 8
Registered: 08-04-2010

WiFiStation Ext works on Linux

WiFiStation Ext on Ubuntu 10.04

Information for drivers.
wireless.kernel.org/en/users/Drivers/ath9k_htc

Downloads and some configuration information.
wireless.kernel.org/en/users/Download

Enable these options in your kernel config .config file.

CONFIG_ATH_COMMON=m
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K_HTC=m


Recompile the kernel.

#lsusb -v 

idVendor 0x0cf3 Atheros Communications, Inc.
idProduct 0xb003


download:
wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2

#locate hif_usb.c

edit the hif_usb.c
add idVendor and idProduct

Run
#./scripts/driver-select ath9k_htc
#make
#make install


download the firmware and move ar9271.fw into /lib/firmware/
Newbie
higx
Posts: 1
Registered: ‎08-05-2010
Posts: 1
Registered: 08-05-2010

Re: WiFiStation Ext works on Linux

Hi, thanks for the post. There are many of us who would like to get this working in linux.

In this ubuntu era where everything hardware just works my linux kernel tweaking skills are rusty. I grabbed the kernel source etc... and poked around the ncurses make menuconfig for a bit but couldnt find what you were describing. where is this kernel config .config file you mention?

tia!
Newbie
joerace
Posts: 8
Registered: ‎08-04-2010
Posts: 8
Registered: 08-04-2010

How to compile a kernel on Ubuntu 10.04

I am testing compiling with kernel 2.6.35 and will be putting together a full guide on the steps needed to get it working on a Ubuntu 10.04.

cp -vi /boot/config-`uname -r` .config

Here is a quick guide
linuxtweaking.blogspot.com/2010/05/how-to-compile-kernel-on-ubuntu-1004.html
Regular Member
heviejob
Posts: 587
Registered: ‎11-10-2009
Posts: 587
Kudos: 20
Registered: 11-10-2009

Re: WiFiStation Ext works on Linux

I once used ndiswrapper to install windows wireless drivers in a linux (worked for suse, fedora and ubuntu which comes with it as a standard installation) So where can i get the *inf files for wifistation or the driver files i try see if it will work?
Newbie
dmd
Posts: 4
Registered: ‎08-22-2010
Posts: 4
Registered: 08-22-2010

Re: WiFiStation Ext works on Linux

Joerace, thank you very much for this posting. Your information is spot on and enabled me to get my WiFiStation Ext working under Gentoo Linux without any trouble.
The only difference is that the CONFIG_ATH9K_HTC appears not to be valid in kernel 2.6.34, but I left it out and it worked anyway.
Thanks again, yours is the sort of helpful posting that we need.
Dave.
Newbie
joerace
Posts: 8
Registered: ‎08-04-2010
Posts: 8
Registered: 08-04-2010

Re: WiFiStation Ext works on Linux

Dave,
I am glad you got it to work in Gentoo, it just goes to show the flexibility of Linux.
Jeff.
Newbie
dmd
Posts: 4
Registered: ‎08-22-2010
Posts: 4
Registered: 08-22-2010

Re: WiFiStation Ext works on Linux

I have poked around with this a bit more. I was having problems with the ath5k driver for my internal wireless card when using the drivers from compat-wireless. I decided to just look for the code in the mainstream kernel and edit that.

I am using kernel 2.6.35 so the ath9k driver is present anyway. I found the hif_usb.c file in the kernel source and added a line for the "b003" ID from the WiFiStation. Rebuilt the modules and it works a treat. This is actually easier than bothering with the bleeding edge drivers from the compat-wireless package.
Newbie
foofight88
Posts: 1
Registered: ‎09-30-2010
Posts: 1
Registered: 09-30-2010

Wifistation EXT on 2.6.34 kernel with Ubuntu 8.10?

Hi
I've tried the above method for my 2.6.34 kernel with Ubuntu 8.10 and it doesn't seem to work. I've also tried the ath9k_utc drivers (gui installer on sourceforge) but no luck. Anyone have any luck with that distro?

Foofighter
Newbie
joerace
Posts: 8
Registered: ‎08-04-2010
Posts: 8
Registered: 08-04-2010

Re: WiFiStation Ext works on Linux

Did you add idVendor and idProduct to the hif_usb.c file?
Newbie
joerace
Posts: 8
Registered: ‎08-04-2010
Posts: 8
Registered: 08-04-2010

WifiStation EXT or WifiStation on ubuntu 10.10

In 2.6.35 drivers are added to the kernel and the firmware is already loaded in /lib/firmware/ar9271.fw so it makes for less steps.
Install linux headers.
download compat-wireless-2.6.35-1.tar.bz2 from http://wireless.kernel.org/en/users/Download/stable/
# vi drivers/net/wireless/ath/ath9k/hif_usb.c
add line
ATH9K_FW_USB_DEV(0xb003, "ar9271.fw"),

# ./scripts/driver-select ath9k_htc
#make
#make install

for WifiStation just find the id by #lsusb
Newbie
piscol4g
Posts: 1
Registered: ‎12-26-2010
Posts: 1
Registered: 12-26-2010

Re: WiFiStation Ext works on Linux

In 2.6.35 drivers are added to the kernel and the firmware is already loaded in /lib/firmware/ar9271.fw so it makes for less steps.

Install linux headers.
download compat-wireless-2.6.35-1.tar.bz2 from http://wireless.kernel.org/en/users/Download/stable/

# vi drivers/net/wireless/ath/ath9k/hif_usb.c

add line
ATH9K_FW_USB_DEV(0xb003, "ar9271.fw"),


# ./scripts/driver-select ath9k_htc
#make
#make install




in what line add this line ?
add line
ATH9K_FW_USB_DEV(0xb003, "ar9271.fw"),


in the end line ?
or here ?

{ USB_DEVICE(0x0cf3, 0xb003) }, /* Ubiquiti WifiStation Ext */


plz help me
excuse me for bad english :icon_sad:
Regular Member
agsweeney
Posts: 730
Registered: ‎06-09-2009
Posts: 730
Kudos: 58
Solutions: 1
Registered: 06-09-2009

Re: WiFiStation Ext works on Linux

In 2.6.35 drivers are added to the kernel and the firmware is already loaded in /lib/firmware/ar9271.fw so it makes for less steps.
Install linux headers.
download compat-wireless-2.6.35-1.tar.bz2 from wireless.kernel.org/en/users/Download/stable/
# vi drivers/net/wireless/ath/ath9k/hif_usb.c
add line
ATH9K_FW_USB_DEV(0xb003, "ar9271.fw"),

# ./scripts/driver-select ath9k_htc
#make
#make install

The WifiStation-EXT is 0xb003 as you pointed out and the WifiStation is 0xb002.
I am working on a OpenWRT (r27175) for RouterStation Pro build that includes support for both.
I may also build AirOS 5.3.x with support for it (mainly for the AirRouter as I have a trailer park that I supply Internet to that I could use this combo for most of the people out there.).
Newbie
jimDavis
Posts: 1
Registered: ‎11-06-2011
Posts: 1
Registered: 11-06-2011

Re: WiFiStation Ext works on Linux

running ubuntu 11.04 and just plugged it in and it works. didn't need to make a single change or download anything. (not only does it work but surpassed my expectations)
Newbie
KafesneBikaina
Posts: 1
Registered: ‎04-17-2012
Posts: 1
Registered: 04-17-2012

Re: WiFiStation Ext works on Linux

running ubuntu 11.04 and just plugged it in and it works. didn't need to make a single change or download anything. (not only does it work but surpassed my expectations)


My Kubuntu 11.10 does't recognize the Wifistation planar :icon_frown::icon_frown:
Any idea how could I make it work?
Newbie
MarcoM
Posts: 5
Registered: ‎08-11-2012
Posts: 5
Registered: 08-11-2012

Re: WiFiStation Ext works on Linux



vi drivers/net/wireless/ath/ath9k/hif_usb.c
add line
ATH9K_FW_USB_DEV(0xb003, "ar9271.fw"),



hif_usb.c is a c code file. So adding this line in it :
ATH9K_FW_USB_DEV(0xb003, "ar9271.fw"),
will make this .c programming file unable to be compiled and build (MAKE).
By lsusb, yes i can see the specific number related to my wifistation ext card. But the main problem that i have is adding it to a file where it would be possible to made a proper "build" or MAKE INSTALL afterward.
So what is the specific file where i need to add the line ATH9K_FW_USB_DEV(0xb003, "ar9271.fw"),
Thanks in advance