Solved

Linux WiFi ath5k driver AP-mode

Posted on 2009-04-12
3
5,356 Views
Last Modified: 2013-11-15
Hi! I did a lot of research trying to find a suitable WLAN card that would work with Linux, and I eventually found a D-Link I thought would work.

The card works fine in standard mode using the ath5k driver, but was trying to get it to function as an access point using hostapd. I just read that the ath5k not yet supports ap-mode. I've also tried removing ath5k and using the older MadWifi driver, but that didn't work either (I installed the Ubuntu linux-restricted-modules package and rebooted, but the WLAN card isn't being detected).

Is there any way to do this? It's an AR5001X+ chip.
0
Comment
Question by:Julian Matz
  • 3
3 Comments
 
LVL 21

Author Comment

by:Julian Matz
ID: 24128057
Ok, I managed to install the MadWifi driver on m second try. I should have installed [linux-restricted-modules-2.6.27-11-server] instead of [linux-restricted-modules]. Then I did:

root@delta:~# modprobe ath_pci
root@delta:~# modprobe ath_hal

Now my wireless card is working using the madwifi driver, however I still cannot change the card to master mode:-

root@delta:~# iwconfig ath0 mode master
Error for wireless request "Set Mode" (8B06) :
    SET failed on device ath0 ; Invalid argument.

Any suggestions would be appreciated.
0
 
LVL 21

Author Comment

by:Julian Matz
ID: 24128101
Ok, I think I'm getting somewhere ... Apparently I had to do following:

root@delta:~# ifconfig ath0 down
root@delta:~# wlanconfig ath0 destroy
root@delta:~# wlanconfig ath0 create wlandev wifi0 wlanmode ap

After testing hostapd for the first time, I could see the SSID of the Ubuntu AP on my Windows laptop.
0
 
LVL 21

Accepted Solution

by:
Julian Matz earned 0 total points
ID: 24180206
I'm not sure if I even need hostapd, I'll need to try without it, but I got my wireless card working in AP-mode using following commands:

root@delta:~# apt-get install linux-restricted-modules-2.6.27-11-server
root@delta:~# modprobe ath_pci
root@delta:~# modprobe ath_hal

root@delta:~# echo 'blacklist ath5k' >> /etc/modprobe.d/blacklist

root@delta:~# shutdown -r now

root@delta:~# ifconfig ath0 down
root@delta:~# wlanconfig ath0 destroy
root@delta:~# wlanconfig ath0 create wlandev wifi0 wlanmode ap
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question