Solved

Linux WiFi ath5k driver AP-mode

Posted on 2009-04-12
3
5,350 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article is a step by step guide on how to create a basic PTP link using Ubiquiti airOS devices. This guide can be used on the following Ubiquiti AirMAX devices. Nanostation, Bullets, AirBridge, Nanobeam, NanoBridge to name a few. Please review …
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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…

860 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