Discussion:
[HostAPD issue] - how to create multiple SSIDs
Yu Li
2013-06-25 22:44:33 UTC
Permalink
Hello All,

I have been following this post to create multi-SSID:
http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd

But in the end when I try to start hostapd daemon, I got the error message
similar to this one:
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)

I am not sure if this is a bug or I configured it wrong. I've tried with
hostapd v0.7.3 and v1.1 both with this same issue.
Other information - OS: Ubuntu 12.04, wireless driver: iwlwifi.

thanks in advance,
--
Lawrence
Douglas Diniz
2013-06-26 02:28:36 UTC
Permalink
Hi, the first instruction in this post is to change the MAC, setting the
last digit to 0, but your log reports a MAC ended with a "4F"!

By the way, is there a limit in the number of SSIDs? Because I can only
create 4 SSIDs by card. I tried two different cards (Ubiquiti XR2 and
SR71A) and I can only create 4 SSIDs in each of these cards using hostapd
2.0.
Post by Yu Li
Hello All,
http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd
But in the end when I try to start hostapd daemon, I got the error message
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
I am not sure if this is a bug or I configured it wrong. I've tried with
hostapd v0.7.3 and v1.1 both with this same issue.
Other information - OS: Ubuntu 12.04, wireless driver: iwlwifi.
thanks in advance,
--
Lawrence
_______________________________________________
HostAP mailing list
http://lists.shmoo.com/mailman/listinfo/hostap
--
-------------------------------------------------------------------
Douglas Gameiro Diniz
Engenheiro de Computação - 2003 - UNICAMP

Mobile: (19) 92158777
Gtalk: dgdiniz
Msn: ***@hotmail.com
Yu Li
2013-06-26 13:57:44 UTC
Permalink
Thank your both for your replies.
FYI, I have set the MAC address ended with "0", here is how the error
shows:

~/Desktop$ sudo hostapd ./test1.conf
Configuration file: ./test1.conf
Using interface wlan0 with hwaddr 02:23:15:0b:24:40 and ssid 'Discover_Net'
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:23:15:0b:24:41)
wlan0: Unable to setup interface.
Failed to remove BSS interface wlan0_0

--------

And here is my test1.conf:

interface=wlan0
bssid=02:23:15:0b:24:40
driver=nl80211
ssid=Discover_Net
channel=6
wpa=1
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

bss=wlan0_0
ssid=DN_0

====

I don't if I should calculate the MAC and how to do that if so. My original
MAC on wlan0 is xx:23:15:0b:24:4x, according to the tutorial, I just set it
to 02:23:15:0b:24:40
Post by Douglas Diniz
Hi, the first instruction in this post is to change the MAC, setting the
last digit to 0, but your log reports a MAC ended with a "4F"!
By the way, is there a limit in the number of SSIDs? Because I can only
create 4 SSIDs by card. I tried two different cards (Ubiquiti XR2 and
SR71A) and I can only create 4 SSIDs in each of these cards using hostapd
2.0.
Post by Yu Li
Hello All,
http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd
But in the end when I try to start hostapd daemon, I got the error
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
I am not sure if this is a bug or I configured it wrong. I've tried with
hostapd v0.7.3 and v1.1 both with this same issue.
Other information - OS: Ubuntu 12.04, wireless driver: iwlwifi.
thanks in advance,
--
Lawrence
_______________________________________________
HostAP mailing list
http://lists.shmoo.com/mailman/listinfo/hostap
--
-------------------------------------------------------------------
Douglas Gameiro Diniz
Engenheiro de Computação - 2003 - UNICAMP
Mobile: (19) 92158777
Gtalk: dgdiniz
--
Yu Li
Douglas Diniz
2013-06-26 14:31:18 UTC
Permalink
Hi, when I run "iw phy0 info", there is this line:

max # scan SSIDs: 4


Is Hostapd using this number as a limit of SSIDs to use?

Yu Li, try to find this line and post it here.
Post by Yu Li
Thank your both for your replies.
FYI, I have set the MAC address ended with "0", here is how the error
~/Desktop$ sudo hostapd ./test1.conf
Configuration file: ./test1.conf
Using interface wlan0 with hwaddr 02:23:15:0b:24:40 and ssid 'Discover_Net'
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:23:15:0b:24:41)
wlan0: Unable to setup interface.
Failed to remove BSS interface wlan0_0
--------
interface=wlan0
bssid=02:23:15:0b:24:40
driver=nl80211
ssid=Discover_Net
channel=6
wpa=1
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
bss=wlan0_0
ssid=DN_0
====
I don't if I should calculate the MAC and how to do that if so. My
original MAC on wlan0 is xx:23:15:0b:24:4x, according to the tutorial, I
just set it to 02:23:15:0b:24:40
Post by Douglas Diniz
Hi, the first instruction in this post is to change the MAC, setting the
last digit to 0, but your log reports a MAC ended with a "4F"!
By the way, is there a limit in the number of SSIDs? Because I can only
create 4 SSIDs by card. I tried two different cards (Ubiquiti XR2 and
SR71A) and I can only create 4 SSIDs in each of these cards using hostapd
2.0.
Post by Yu Li
Hello All,
http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd
But in the end when I try to start hostapd daemon, I got the error
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
I am not sure if this is a bug or I configured it wrong. I've tried with
hostapd v0.7.3 and v1.1 both with this same issue.
Other information - OS: Ubuntu 12.04, wireless driver: iwlwifi.
thanks in advance,
--
Lawrence
_______________________________________________
HostAP mailing list
http://lists.shmoo.com/mailman/listinfo/hostap
--
-------------------------------------------------------------------
Douglas Gameiro Diniz
Engenheiro de Computação - 2003 - UNICAMP
Mobile: (19) 92158777
Gtalk: dgdiniz
--
Yu Li
--
-------------------------------------------------------------------
Douglas Gameiro Diniz
Engenheiro de Computação - 2003 - UNICAMP

Mobile: (19) 92158777
Gtalk: dgdiniz
Msn: ***@hotmail.com
Jonathan Bither
2013-06-26 15:09:52 UTC
Permalink
Post by Douglas Diniz
max # scan SSIDs: 4
Is Hostapd using this number as a limit of SSIDs to use?
Yu Li, try to find this line and post it here.
It's listed under interface combinations.
Example of mine with ath9k:

valid interface combinations:
* #{ managed, WDS, P2P-client } <= 2048,
#{ AP, mesh point, P2P-GO } <= 8,
total <= 2048, #channels <= 1, STA/AP BI must match
Post by Douglas Diniz
Thank your both for your replies.
FYI, I have set the MAC address ended with "0", here is how the
~/Desktop$ sudo hostapd ./test1.conf
Configuration file: ./test1.conf
Using interface wlan0 with hwaddr 02:23:15:0b:24:40 and ssid 'Discover_Net'
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:23:15:0b:24:41)
wlan0: Unable to setup interface.
Failed to remove BSS interface wlan0_0
--------
interface=wlan0
bssid=02:23:15:0b:24:40
driver=nl80211
ssid=Discover_Net
channel=6
wpa=1
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
bss=wlan0_0
ssid=DN_0
====
I don't if I should calculate the MAC and how to do that if so. My
original MAC on wlan0 is xx:23:15:0b:24:4x, according to the
tutorial, I just set it to 02:23:15:0b:24:40
Hi, the first instruction in this post is to change the MAC,
setting the last digit to 0, but your log reports a MAC ended
with a "4F"!
By the way, is there a limit in the number of SSIDs? Because I
can only create 4 SSIDs by card. I tried two different cards
(Ubiquiti XR2 and SR71A) and I can only create 4 SSIDs in each
of these cards using hostapd 2.0.
Hello All,
http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd
But in the end when I try to start hostapd daemon, I got the
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
I am not sure if this is a bug or I configured it wrong.
I've tried with hostapd v0.7.3 and v1.1 both with this same
issue.
Other information - OS: Ubuntu 12.04, wireless driver: iwlwifi.
thanks in advance,
--
Lawrence
_______________________________________________
HostAP mailing list
http://lists.shmoo.com/mailman/listinfo/hostap
--
-------------------------------------------------------------------
Douglas Gameiro Diniz
Engenheiro de Computação - 2003 - UNICAMP
Mobile: (19) 92158777
Gtalk: dgdiniz
--
Yu Li
--
-------------------------------------------------------------------
Douglas Gameiro Diniz
Engenheiro de Computação - 2003 - UNICAMP
Mobile: (19) 92158777
Gtalk: dgdiniz
_______________________________________________
HostAP mailing list
http://lists.shmoo.com/mailman/listinfo/hostap
Yu Li
2013-06-26 15:19:31 UTC
Permalink
Hi Douglas,

Mine says :
max # scan SSIDs: 20
Post by Douglas Diniz
max # scan SSIDs: 4
Is Hostapd using this number as a limit of SSIDs to use?
Yu Li, try to find this line and post it here.
Post by Yu Li
Thank your both for your replies.
FYI, I have set the MAC address ended with "0", here is how the error
~/Desktop$ sudo hostapd ./test1.conf
Configuration file: ./test1.conf
Using interface wlan0 with hwaddr 02:23:15:0b:24:40 and ssid
'Discover_Net'
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:23:15:0b:24:41)
wlan0: Unable to setup interface.
Failed to remove BSS interface wlan0_0
--------
interface=wlan0
bssid=02:23:15:0b:24:40
driver=nl80211
ssid=Discover_Net
channel=6
wpa=1
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
bss=wlan0_0
ssid=DN_0
====
I don't if I should calculate the MAC and how to do that if so. My
original MAC on wlan0 is xx:23:15:0b:24:4x, according to the tutorial, I
just set it to 02:23:15:0b:24:40
Post by Douglas Diniz
Hi, the first instruction in this post is to change the MAC, setting the
last digit to 0, but your log reports a MAC ended with a "4F"!
By the way, is there a limit in the number of SSIDs? Because I can only
create 4 SSIDs by card. I tried two different cards (Ubiquiti XR2 and
SR71A) and I can only create 4 SSIDs in each of these cards using hostapd
2.0.
Post by Yu Li
Hello All,
http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd
But in the end when I try to start hostapd daemon, I got the error
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
I am not sure if this is a bug or I configured it wrong. I've tried
with hostapd v0.7.3 and v1.1 both with this same issue.
Other information - OS: Ubuntu 12.04, wireless driver: iwlwifi.
thanks in advance,
--
Lawrence
_______________________________________________
HostAP mailing list
http://lists.shmoo.com/mailman/listinfo/hostap
--
-------------------------------------------------------------------
Douglas Gameiro Diniz
Engenheiro de Computação - 2003 - UNICAMP
Mobile: (19) 92158777
Gtalk: dgdiniz
--
Yu Li
--
-------------------------------------------------------------------
Douglas Gameiro Diniz
Engenheiro de Computação - 2003 - UNICAMP
Mobile: (19) 92158777
Gtalk: dgdiniz
--
Yu Li
Jouni Malinen
2013-06-26 17:34:11 UTC
Permalink
Post by Yu Li
http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd
But in the end when I try to start hostapd daemon, I got the error message
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
I am not sure if this is a bug or I configured it wrong. I've tried with
hostapd v0.7.3 and v1.1 both with this same issue.
Other information - OS: Ubuntu 12.04, wireless driver: iwlwifi.
You would need to use a driver and WLAN hardware that supports multiple
AP mode interfaces for this to work. I don't think iwlwifi is such a
driver.
--
Jouni Malinen PGP id EFC895FA
Yu Li
2013-06-26 18:17:35 UTC
Permalink
Thanks for relying Jouni.

I am only aware of iwlwifi supporting AP mode (master mode). But I have not
find any document demonstrating that iwlwifi does not support creating
multiple SSIDs. Would you point out the source of it?

thanks,
Post by Yu Li
Post by Yu Li
http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd
But in the end when I try to start hostapd daemon, I got the error
message
Post by Yu Li
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
I am not sure if this is a bug or I configured it wrong. I've tried with
hostapd v0.7.3 and v1.1 both with this same issue.
Other information - OS: Ubuntu 12.04, wireless driver: iwlwifi.
You would need to use a driver and WLAN hardware that supports multiple
AP mode interfaces for this to work. I don't think iwlwifi is such a
driver.
--
Jouni Malinen PGP id EFC895FA
_______________________________________________
HostAP mailing list
http://lists.shmoo.com/mailman/listinfo/hostap
--
Yu Li
Ben Greear
2013-06-26 18:21:19 UTC
Permalink
Post by Yu Li
Thanks for relying Jouni.
I am only aware of iwlwifi supporting AP mode (master mode). But I have not find any document demonstrating that iwlwifi does not support creating multiple
SSIDs. Would you point out the source of it?
You might have better luck with Atheros NICs. They can definitely support multiple
virtual APs and stations per physical NIC.

If in doubt, the AR9380 chipset has worked well for us for this purpose.

Thanks,
Ben
Post by Yu Li
thanks,
Post by Yu Li
http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd
But in the end when I try to start hostapd daemon, I got the error message
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
I am not sure if this is a bug or I configured it wrong. I've tried with
hostapd v0.7.3 and v1.1 both with this same issue.
Other information - OS: Ubuntu 12.04, wireless driver: iwlwifi.
You would need to use a driver and WLAN hardware that supports multiple
AP mode interfaces for this to work. I don't think iwlwifi is such a
driver.
--
Jouni Malinen PGP id EFC895FA
_______________________________________________
HostAP mailing list
http://lists.shmoo.com/mailman/listinfo/hostap
--
Yu Li
_______________________________________________
HostAP mailing list
http://lists.shmoo.com/mailman/listinfo/hostap
--
Ben Greear <***@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
Yu Li
2013-06-26 20:19:42 UTC
Permalink
Thanks Ben, since the only NIC I have right now is the Intel® Centrino®
Advanced-N + WiMAX 6250 (2.6.30) with iwlwifi driver, I wonder if you know
any other ways that allows me to create multiple networks using hostapd?

thanks,
Post by Ben Greear
Post by Yu Li
Thanks for relying Jouni.
I am only aware of iwlwifi supporting AP mode (master mode). But I have
not find any document demonstrating that iwlwifi does not support creating
multiple
SSIDs. Would you point out the source of it?
You might have better luck with Atheros NICs. They can definitely support multiple
virtual APs and stations per physical NIC.
If in doubt, the AR9380 chipset has worked well for us for this purpose.
Thanks,
Ben
Post by Yu Li
thanks,
http://wiki.stocksy.co.uk/**wiki/Multiple_SSIDs_with_**hostapd<http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd>
But in the end when I try to start hostapd daemon, I got the error
message
Could not set interface wlan0_0 flags: Device or resource busy
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
I am not sure if this is a bug or I configured it wrong. I've
tried with
hostapd v0.7.3 and v1.1 both with this same issue.
Other information - OS: Ubuntu 12.04, wireless driver: iwlwifi.
You would need to use a driver and WLAN hardware that supports multiple
AP mode interfaces for this to work. I don't think iwlwifi is such a
driver.
--
Jouni Malinen PGP id EFC895FA
______________________________**_________________
HostAP mailing list
http://lists.shmoo.com/**mailman/listinfo/hostap<http://lists.shmoo.com/mailman/listinfo/hostap>
--
Yu Li
______________________________**_________________
HostAP mailing list
http://lists.shmoo.com/**mailman/listinfo/hostap<http://lists.shmoo.com/mailman/listinfo/hostap>
--
Candela Technologies Inc http://www.candelatech.com
--
Yu Li
Ben Greear
2013-06-27 00:19:30 UTC
Permalink
Thanks Ben, since the only NIC I have right now is the Intel® Centrino® Advanced-N + WiMAX 6250 (2.6.30) with iwlwifi driver, I wonder if you know any other
ways that allows me to create multiple networks using hostapd?
Probably it just cannot be done. Most wifi chipsets have various limitations.

In my experience, only the Atheros chipsets can do interesting amounts
of virtual interfaces. Someone once told me that a hacked broadcom firmware
might enable virtual stations on at least some broadcom hardware, but I never tried
it.

Also, make sure you are not using the USB adapters..those still have
lots of limitations even if the chipset is Atheros.

Thanks,
Ben
--
Ben Greear <***@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
Yu Li
2013-06-27 01:49:36 UTC
Permalink
Thanks a bunch Ben.
Post by Ben Greear
Thanks Ben, since the only NIC I have right now is the IntelŜ CentrinoŜ
Advanced-N + WiMAX 6250 (2.6.30) with iwlwifi driver, I wonder if you know
any other
ways that allows me to create multiple networks using hostapd?
Probably it just cannot be done. Most wifi chipsets have various limitations.
In my experience, only the Atheros chipsets can do interesting amounts
of virtual interfaces. Someone once told me that a hacked broadcom firmware
might enable virtual stations on at least some broadcom hardware, but I never tried
it.
Also, make sure you are not using the USB adapters..those still have
lots of limitations even if the chipset is Atheros.
Thanks,
Ben
--
Candela Technologies Inc http://www.candelatech.com
--
Yu Li
Jouni Malinen
2013-06-26 18:31:41 UTC
Permalink
Post by Yu Li
I am only aware of iwlwifi supporting AP mode (master mode). But I have not
find any document demonstrating that iwlwifi does not support creating
multiple SSIDs. Would you point out the source of it?
I looked at the source code of that driver to see it registered
supported interface combinations with maximum of one AP interface. You
can also see that in the "valid interface combinations" output in "iw
list" output.
--
Jouni Malinen PGP id EFC895FA
Yu Li
2013-06-26 18:57:37 UTC
Permalink
I see, thanks for the tips.
Post by Jouni Malinen
Post by Yu Li
I am only aware of iwlwifi supporting AP mode (master mode). But I have
not
Post by Yu Li
find any document demonstrating that iwlwifi does not support creating
multiple SSIDs. Would you point out the source of it?
I looked at the source code of that driver to see it registered
supported interface combinations with maximum of one AP interface. You
can also see that in the "valid interface combinations" output in "iw
list" output.
--
Jouni Malinen PGP id EFC895FA
_______________________________________________
HostAP mailing list
http://lists.shmoo.com/mailman/listinfo/hostap
--
Yu Li
Continue reading on narkive:
Loading...