Skip to contentSkip to conversation

Multiple SSID

DISCUSSION Luis R. Rodriguez 4 participants 4 messages Aug 12, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20090812100416.744dc5ba@nehalam

#1 lore raw
Quoted 5 lines · Stephen Hemminger

I have a dumb questions. How does one setup multiple SSID's with current (ie not madwifi) wireless API?

1. I assume need to run multiple instances of hostapd with different config. Will that work?

Yes. But the next question is how to create new wlan%d AP interfaces. That is answered below.

Quoted 2 lines

2. Since IP address is attached to device (wlan0), how can each SSID have different IP address? Use vlan's?

The new 'iw' [2] utility could be used to create monitor interfaces or ad-hoc interfaces for example. We decided to only allow you to create an "AP" type of interface with a utility that handles the MLME in userspace, such a utility is hostapd. You will need to use the nl80211 driver with hosatpd [2]. We have documented the supported wireless modes in our wiki [3], I suppose that could use some updating.

Anyway I believe AP-enabled devices right now only support creating 1 AP interfface. I believe the exception to this right now is ath9k through the private virtual interface stuff Jouni created, but to be honest I have to go and review that to make sure you can create 2 APs.

Typically drivers (MadWifi) which supported multiple BSSs (therefore with two SSIDs) would allow you to do this by creating BSSes on the same channel. The ath9k virtual interface thing allows you to create interfaces on *separate* channels, and provides its own scheduler, which you can tune, for switching back and forth.

[1] http://wireless.kernel.org/en/users/Documentation/iw
[2] http://wireless.kernel.org/en/users/Documentation/hostapd
[3] http://wireless.kernel.org/en/users/Documentation/modes

Quoted 1 line

3. Do vlan's work on wireless (ath9k)?

Not sure what is required to support vlans.

Luis

#2 lore raw
Quoted 10 lines · Luis R. Rodriguez
Quoted 5 lines · Stephen Hemminger

I have a dumb questions. How does one setup multiple SSID's with current (ie not madwifi) wireless API?

1. I assume need to run multiple instances of hostapd with different config. Will that work?

Yes. But the next question is how to create new wlan%d AP interfaces. That is answered below.

Huh, no, that's not really true. You can run one hostapd with multiple BSSes, in theory, except driver_nl80211.c doesn't have all the code for it yet. Should be fairly simple though to implement, just needs a list of BSSes in that file.

Quoted 1 line
Quoted 1 line

3. Do vlan's work on wireless (ath9k)?

Well, not in the 802.1q sense. VLANs exist our terminology as a way to separate (by using different group keys and different local netdevs) stations connected to the same BSS. This should work, with radius or with static configuration, but I never tried.

johannes

#3 lore raw
In reply to Luis R. Rodriguez
Quoted 9 lines · Luis R. Rodriguez
Quoted 2 lines · Stephen Hemminger

I have a dumb questions. How does one setup multiple SSID's with current (ie not madwifi) wireless API?

Anyway I believe AP-enabled devices right now only support creating 1 AP interfface. I believe the exception to this right now is ath9k through the private virtual interface stuff Jouni created, but to be honest I have to go and review that to make sure you can create 2 APs.

We're *still* working on virtualizing ath5k. Over the last few days, we have gotten this working pretty well, including virtual APs, virtual STAs with WPA & no security. I haven't tested WEP lately.

We are chasing a few remaining buglets and optimizations currently.

I have a page up here to help get started using this:
http://www.candelatech.com/oss/vsta.html

NOTE: The .31 tree mentioned there has a bunch of other patches in it that we use for various purposes. There is no clean way to get *just* our wifi changes at this point.

We plan to submit the patches upstream, but there is a lot of churn in wifi code so it will be a bit longer before we can get the patches tested on stable code and then ported to the development branches.

I haven't tried out ath9k yet, but look forward to it once we get ath5k nailed down.

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#4 lore raw
In reply to Luis R. Rodriguez
Quoted 32 lines · On Wed, 12 Aug 2009 10:25:34 -0700 "Luis R. Rodriguez" <[email protected]> wrote:
Quoted 5 lines · Stephen Hemminger

I have a dumb questions. How does one setup multiple SSID's with current (ie not madwifi) wireless API?

1. I assume need to run multiple instances of hostapd with different config. Will that work?

Yes. But the next question is how to create new wlan%d AP interfaces. That is answered below.

Quoted 2 lines

2. Since IP address is attached to device (wlan0), how can each SSID have different IP address? Use vlan's?

The new 'iw' [2] utility could be used to create monitor interfaces or ad-hoc interfaces for example. We decided to only allow you to create an "AP" type of interface with a utility that handles the MLME in userspace, such a utility is hostapd. You will need to use the nl80211 driver with hosatpd [2]. We have documented the supported wireless modes in our wiki [3], I suppose that could use some updating.

Anyway I believe AP-enabled devices right now only support creating 1 AP interfface. I believe the exception to this right now is ath9k through the private virtual interface stuff Jouni created, but to be honest I have to go and review that to make sure you can create 2 APs.

Typically drivers (MadWifi) which supported multiple BSSs (therefore with two SSIDs) would allow you to do this by creating BSSes on the same channel. The ath9k virtual interface thing allows you to create interfaces on *separate* channels, and provides its own scheduler, which you can tune, for switching back and forth.

Quoted 3 lines

[1] http://wireless.kernel.org/en/users/Documentation/iw
[2] http://wireless.kernel.org/en/users/Documentation/hostapd
[3] http://wireless.kernel.org/en/users/Documentation/modes

The existing API creates another entity 'phy0' which lives in yet another namespace, it is not a filesystem or a network device. The only way to enumerate these is the 'iw phy' which is okay, but does this work with hotplug (it doesn't go through udev?) and what about network namespaces?