More than 4 SSIDs with one NIC/hostapd instance?

Jan Vales jan
Wed Jan 2 12:03:41 PST 2013


Hi,

i wonder if it is possible to create more than 4 SSIDs with one nic +
hostapd instance.
An useful real-life use-case might not really exist, but I still want to
know, why it fails if i want more than 4 SSIDs.

hostapd -d /etc/hostapd/hostapd.conf
just says "Could not set interface wlan0_3 flags: Device or resource
busy" and shuts down.
(full output attached)


The config is pretty much distrib (gentoo) default:

interface=wlan0
bridge=br0
driver=nl80211

logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2

dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0

ssid=Test1

hw_mode=g
channel=6
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346

preamble=1
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0

wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0

wds_sta=1
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1


bss=wlan0_0
ssid=Test2
bridge=br0

bss=wlan0_1
ssid=Test3
bridge=br0

bss=wlan0_2
ssid=Test4
bridge=br0

# Commenting this block in, makes it fail.
#bss=wlan0_3
#ssid=Test5
#bridge=br0


root at hostap200 ~ # uname -a
Linux hostap200 3.7.1-gentoo #8 SMP Wed Jan 2 18:49:07 CET 2013 i686
Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz GenuineIntel GNU/Linux

root at hostap200 ~ # lsmod
Module                  Size  Used by
ath5k                 126000  0
led_class               2747  1 ath5k
mac80211              207223  1 ath5k
ath                    13827  1 ath5k
cfg80211              161796  3 ath,ath5k,mac80211
rfkill                 14174  1 cfg80211
yenta_socket           18659  0

hostapd starts up fine with 4 SSIDs, but fails with 5 or more.
8 SSIDs didnt work either.
And yes, i recompiled hostapd without the 2 patches i sent to this list
earlier.

Any idea what to do?

lg
~Jan
-------------- next part --------------
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
nl80211: interface wlan0 in phy phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Using driver-based off-channel TX
nl80211: Add own interface ifindex 4
nl80211: Add own interface ifindex 4
nl80211: Add own interface ifindex 4
nl80211: Add own interface ifindex 4
nl80211: Add own interface ifindex 4
nl80211: Add own interface ifindex 3
nl80211: Set mode ifindex 3 iftype 3 (AP)
nl80211: Create interface iftype 6 (MONITOR)
nl80211: New interface mon.wlan0 created: ifindex=85
nl80211: Add own interface ifindex 85
nl80211: Adding interface wlan0 into bridge br0
BSS count 5, BSSID mask ff:ff:ff:ff:ff:f8 (3 bits)
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz
nl80211: 2457-2482 @ 20 MHz
nl80211: 2474-2494 @ 20 MHz
nl80211: 5170-5250 @ 40 MHz
nl80211: 5735-5835 @ 40 MHz
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
Completing interface initialization
Mode: IEEE 802.11g  Channel: 6  Frequency: 2437 MHz
nl80211: Set freq 2437 (ht_enabled=0 sec_channel_offset=0)
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 00:20:a6:54:0f:00 and ssid 'Test1'
nl80211: Set beacon (beacon_set=0)
wpa_driver_nl80211_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
nl80211: Create interface iftype 3 (AP)
nl80211: New interface wlan0_0 created: ifindex=86
nl80211: Add own interface ifindex 86
nl80211: Adding interface wlan0_0 into bridge br0
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=86 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=86 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=86 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=86 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0_0 with hwaddr 00:20:a6:54:0f:01 and ssid 'Test2'
nl80211: Set beacon (beacon_set=0)
wpa_driver_nl80211_set_operstate: operstate 1->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
nl80211: Create interface iftype 3 (AP)
nl80211: New interface wlan0_1 created: ifindex=87
nl80211: Add own interface ifindex 87
nl80211: Adding interface wlan0_1 into bridge br0
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=87 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=87 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=87 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=87 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0_1 with hwaddr 00:20:a6:54:0f:02 and ssid 'Test3'
nl80211: Set beacon (beacon_set=0)
wpa_driver_nl80211_set_operstate: operstate 1->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
nl80211: Create interface iftype 3 (AP)
nl80211: New interface wlan0_2 created: ifindex=88
nl80211: Add own interface ifindex 88
nl80211: Adding interface wlan0_2 into bridge br0
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=88 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=88 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=88 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=88 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0_2 with hwaddr 00:20:a6:54:0f:03 and ssid 'Test4'
nl80211: Set beacon (beacon_set=0)
wpa_driver_nl80211_set_operstate: operstate 1->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
nl80211: Create interface iftype 3 (AP)
nl80211: New interface wlan0_3 created: ifindex=89
nl80211: Add own interface ifindex 89
nl80211: Adding interface wlan0_3 into bridge br0
Could not set interface wlan0_3 flags: Device or resource busy
nl80211: Remove interface ifindex=89
Failed to add BSS (BSSID=00:20:a6:54:0f:04)
wlan0: Unable to setup interface.
Flushing old station entries
Deauthenticate all stations
Flushing old station entries
Deauthenticate all stations
nl80211: wpa_driver_nl80211_if_remove(type=2 ifname=wlan0_0) ifindex=86
nl80211: Remove interface ifindex=86
Flushing old station entries
Deauthenticate all stations
nl80211: wpa_driver_nl80211_if_remove(type=2 ifname=wlan0_1) ifindex=87
nl80211: Remove interface ifindex=87
Flushing old station entries
Deauthenticate all stations
nl80211: wpa_driver_nl80211_if_remove(type=2 ifname=wlan0_2) ifindex=88
nl80211: Remove interface ifindex=88
Flushing old station entries
Deauthenticate all stations
nl80211: wpa_driver_nl80211_if_remove(type=2 ifname=wlan0_3) ifindex=0
Failed to remove BSS interface wlan0_3
nl80211: Remove interface ifindex=85
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 3 iftype 2 (STATION)



More information about the Hostap mailing list