single radio interface, BSS count 2
green
greenfreedom10
Sun Feb 21 18:29:05 PST 2010
Jouni Malinen wrote at 2010-02-21 04:02 -0600:
> On Sat, Feb 20, 2010 at 04:34:49PM -0600, green wrote:
> > I would like to provide 2 wireless networks, one open, one WPA2.
> >
> > The first (open) network works fine, but when I add the second (no wpa set
> > up yet) I get:
> > BSS count 2, BSSID mask ff:ff:ff:ff:ff:fe (1 bits)
> > Invalid BSSID mask ff:ff:ff:ff:ff:fe for start address 00:21:91:01:11:6f.
> > Start address must be the first address in the block (i.e., addr AND mask == addr).
>
> hostapd will by default try to assign consecutive addresses for the
> virtual interfaces and require that the BSSID mask can generated in a
> way that allows the driver to use simple operation to figure out which
> frames should be acknowledged. This requires that the lowest end bits of
> the MAC address are zeros which is not the case here.
> You can either change the MAC address of the wlan0 interface before
> starting hostapd (e.g., use a locally administered address
> 02:21:91:01:11:60)
I think you meant 00: instead of 02:, unless you wanted that second digit
changed from the hardware MAC (I tried both ways).
Okay, without changes to the config:
# ifconfig wlan0 hw ether 00:21:91:01:11:60
# hostapd -d /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=50 (from group name 'staff')
Opening raw packet socket for ifindex -843944955
BSS count 2, BSSID mask ff:ff:ff:ff:ff:fe (1 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
nl80211: Added 802.11b mode based on 802.11g information
RATE[0] rate=10 flags=0x2
RATE[1] rate=20 flags=0x6
RATE[2] rate=55 flags=0x4
RATE[3] rate=110 flags=0x4
Passive scanning not supported
Mode: IEEE 802.11b Channel: 8 Frequency: 2447 MHz
Flushing old station entries
Deauthenticate all stations
Using interface wlan0 with hwaddr 02:21:91:01:11:60 and ssid 'Welcome'
Failed to add BSS (BSSID=02:21:91:01:11:61)
wlan0: Unable to setup interface.
Failed to remove interface.
> or set the MAC address of the virtual interface
> explicitly (e.g., with bssid=02:21:91:01:11:6f after the bss= line in
> hostapd.conf).
## Return to original MAC
# ifconfig wlan0 hw ether 00:21:91:01:11:6f
## Add bssid line
# echo "bssid=00:21:91:01:11:6f" >> /etc/hostapd/hostapd.conf
# hostapd -d /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=50 (from group name 'staff')
Opening raw packet socket for ifindex -843944955
BSS count 2, BSSID mask ff:ff:ff:ff:ff:fe (1 bits)
Invalid BSSID mask ff:ff:ff:ff:ff:fe for start address 00:21:91:01:11:6f.
Start address must be the first address in the block (i.e., addr AND mask == addr).
wlan0: Unable to setup interface.
rmdir[ctrl_interface]: No such file or directory
Thanks for your help.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20100221/94043c53/attachment.pgp
More information about the Hostap
mailing list