multiple SSID's for hostapd?
Say I want to have 2 SSID's for my hostapd ( but I only have 1 wifi card). So I want 1 wifi card to host 2 wifi networks.
Do I need to run 2 instances of hostapd?
Or can hostapd.conf handle multiple SSID configurations? If so, how? I can't find any clear examples googling.
I found this
http://www.mail-archive.com/ath9k-devel at lists.ath9k.org/msg01346.html but it is not clear to me.
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100907/38901b5d/attachment.htm
Hi At,
Both ways work.
* Two hostapds:
I tested it with a recent ath9k version.
Each interface has to have an own MAC adress.
As far as i understand this, the driver has to generate a bitmask the MAC is programmed with that filters according BSSIDs, because these are automatically ACKed. So ideally you would have to program two mac adresses that only differ in one bit.
Say,
# ifconfig wlan0 gives you HWaddr 00:0B:6B:54:5A:B3 then 0x3 is 0011. Then you would have to add wlan1 with # iw phy phy0 interface add wlan1 type managed and change its MAC to (0010 is 0x2) # ifconfig wlan1 hw ether 00:0B:6B:54:5A:B2
Then you should be able to start two hostapd on the same channel.
* One hostapd (which i think is better)
hostapd.conf (0.7.2) files have a section "Multiple BSSID support" at their end. I used:
bss=wlan0_0
ssid=ath9ktest2
bssid=00:15:6d:84:1f:28 <- enter you calculated MAC address here #you can have another encryption for your 2nd ssid wpa=2
wpa_pairwise=TKIP CCMP
wpa_passphrase=anothersecret
# hostapd /etc/hostapd.conf Using interface wlan0 with hwaddr 00:15:6d:84:1f:29 and ssid 'ath9ktest' Using interface wlan0_0 with hwaddr 00:15:6d:84:1f:28 and ssid 'ath9ktest2'
Commenting out bssid and let hostapd calculate did not work for me.
Alex
Am Dienstag, 7. September 2010, 09:45:57 schrieb At Santos:
Quoted 11 lines
Say I want to have 2 SSID's for my hostapd ( but I only have 1 wifi card). So I want 1 wifi card to host 2 wifi networks.
Do I need to run 2 instances of hostapd?
Or can hostapd.conf handle multiple SSID configurations? If so, how? I can't find any clear examples googling.
I found this
http://www.mail-archive.com/ath9k-devel at lists.ath9k.org/msg01346.html but it is not clear to me.Thanks in advance
Thanks for your response.
will try the "One hostapd" solution.
regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100917/1b7b75bb/attachment.htm