Setting up two Access Points

Depending on the product you are using and the driver version, it is possible to run two access points side by side on one device. Check the release notes of the driver corresponding to your device + interface combination, the Simultaneous Mode Use Cases section will show you if you can use uap0 and uap1 in parallel.

Both APs on the same channel

If you want to operate two SSIDs on the same band and channel, pass these two parameters when loading the driver

drv_mode=2 max_uap_bss=2

Create two files containing these example hostapd configurations:

ssid=SoftAP
interface=uap0
driver=nl80211
hw_mode=g
channel=11
ieee80211n=1

ssid=SoftAP2
interface=uap1
driver=nl80211
hw_mode=g
channel=11
ieee80211n=1

Start both instances of hostapd:

$ sudo hostapd hostapd1.conf
Configuration file: /home/hdwireless/hostapd1.conf
Using interface uap0 with hwaddr 78:c4:0e:a0:0d:d8 and ssid "SoftAP"
uap0: interface state UNINITIALIZED->ENABLED
uap0: AP-ENABLED

$ sudo hostapd hostapd2.conf
Configuration file: /home/hdwireless/hostapd2.conf
Using interface uap1 with hwaddr 78:c4:0e:a0:0d:d8 and ssid "SoftAP2"
uap0: interface state UNINITIALIZED->ENABLED
uap0: AP-ENABLED

APs on different channels

If you plan to run the APs on two different channels, you will also need to activate the Dynamic Rapid Channel Switching feature. Use these three parameters when loading the driver:

drv_mode=2 max_uap_bss=2 cfg80211_drcs=1

DRCS works by periodically pausing all transmissions to switch channel, then returning to the first channel and resuming transmissions. DRCS has a significant impact on the maximum throughput you can achieve when transmissions are occuring on both channels at the same time.

Note that DFS radar detection is not supported when DRCS is enabled. Do not enable DRCS when operating in channels where DFS is needed.

Create two files containing these example hostapd configurations:

ssid=SoftAP
interface=uap0
driver=nl80211
hw_mode=g
channel=11
ieee80211n=1

ssid=SoftAP2
interface=uap1
driver=nl80211
hw_mode=a
channel=36
ieee80211n=1

Start both instances of hostapd:

$ sudo hostapd hostapd1.conf
Configuration file: /home/hdwireless/hostapd1.conf
Using interface uap0 with hwaddr 78:c4:0e:a0:0d:d8 and ssid "SoftAP"
uap0: interface state UNINITIALIZED->ENABLED
uap0: AP-ENABLED

$ sudo hostapd hostapd2.conf
Configuration file: /home/hdwireless/hostapd2.conf
Using interface uap0 with hwaddr 78:c4:0e:a0:0d:d8 and ssid "SoftAP2"
uap1: interface state UNINITIALIZED->ENABLED
uap1: AP-ENABLED
This site is powered by Foswiki
Copyright © 2017-2020 H&D Wireless AB.