Solved

Linux WiFi ath5k driver AP-mode

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 …
Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now