Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Creating an Ad-Hoc Station Mode Interface

This document does not apply to "old" (pre November 2005) versions of MadWifi.

First make sure that the interface you are going to create does not already exist. If 'ath0' already exists for instance, destroy it by:

wlanconfig ath0 destroy

To create an interface (called ath0) in ad-hoc mode, issue the command:

wlanconfig ath0 create wlandev wifi0 wlanmode adhoc

Or,

wlanconfig ath create wlandev wifi0 wlanmode adhoc

The only difference is the lack of '0' in the second command. The kernel will give the interface the lowest free integer as its suffix.

This will create a station mode interface which will inherit the MAC address of the base device, wifi0.

You can then use ath0 as you would any other normal (ad-hoc) wireless interface. wlanconfig is documented in its man page, wlanconfig 8.

You can find information about what to do once you have your ad-hoc interface, at UserDocs/AdHoc.

It seems only one ad-hoc VAP is possible, as creating a second one fails. Also, creating an ad-hoc VAP fails if there already is an ap VAP.