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 3 (modified by anonymous, 14 years ago)
change -nobssid to -bssid

Creating Multiple Interfaces

Creating multiple interfaces with 'madwifi-ng' 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.