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 .
Version 5 (modified by p0g0, 13 years ago)
NG Redaction

Creating Multiple Interfaces

Creating multiple interfaces with MadWifi is as easy as running wlanconfig more than once, for example, to create a station mode interface and an access point:

# First, create the AP:
wlanconfig ath create wlandev wifi0 wlanmode ap
# And now the station:
wlanconfig ath create wlandev wifi0 wlanmode sta nosbeacon

Note, that when creating stations and access points together, the station command must have the nosbeacon in order to stop the station's hardware beacon timers.

You can also create multiple logical access points which you can use separately:

wlanconfig ath0 create wlandev wifi0 wlanmode ap
wlanconfig ath1 create wlandev wifi0 wlanmode ap
wlanconfig ath2 create wlandev wifi0 wlanmode ap
iwconfig ath0 essid "public_AP"
iwconfig ath1 essid "XYZ Corp"
iwconfig ath2 essid "Something Else"

In the above case, all of the APs will have different MAC addresses. To force them to share the address of the base device, use the -bssid flag:

wlanconfig ath create wlandev wifi0 wlanmode ap -bssid
wlanconfig ath create wlandev wifi0 wlanmode ap -bssid

This creates two access points, using the first available suffixes for ath, and both sharing the same MAC.

For more infomation on wlanconfig see its man page.

VAP Creation Order

From the Users-Guide: Only one station VAP can exist on a device. If the station VAP is the first VAP created, then no other VAPs are allowed to be created. If the first VAP created is in AP (Master) mode, then one station VAP is allowed to be created. In this case, other AP VAPs can also be created after the station VAP. When AP and station VAPs coexist, the nosbeacon flag must be used when creating the station. This flag disables the use of hardware beacon timers for station mode operation. ( http://madwifi.org/users-guide/node14.html ).