2012-11-25 21:53:01

by Helmut Schaa

[permalink] [raw]
Subject: Re: Multi-bss operation issue with rt2x00 and hostapd on rt305x platform

On Sun, Nov 25, 2012 at 10:44 PM, Helmut Schaa
<[email protected]> wrote:
> On 11/25/2012 08:00 PM, Petr Štetiar wrote:
>
> Hi,
>
> first of all, I apologize for cross posting. Please kindly keep me in the Cc
> loop as I'm not subscribed to the mailing lists.
>
> For the past week I'm trying to get multi-bss working on ramips platform,
> it's
> a Carambola(from 8Devices) board with rt3050 SOC, which use rt2x00 driver
> for
> wireless. I use OpenWRT, which currently have 3.3.8 kernel and
> compat-wireless
> from 2012-09-07. On top of this I've applied following patches (otherwise
> it's
> not even possible to create the wlan0-1 and wlan0-2 interfaces):
>
> 3e4c4151e56ff367fb1487ea79134eea7410407 [PATCH] rt2x00: Deprecate
> max_sta_intf field of struct rt2x00_ops
> 55d2e9da744ba11eae900b4bfc2da72eace3c1e1 [PATCH] rt2x00: Replace open coded
> interface checking with interface combinations
>
> It's kind of working now, but not completly. I've setup with 3 VAPs:
>
> wlan0: SSID "wlan0-bad"
> wlan0-1: SSID "wlan01-ok"
> wlan0-2: SSID "wlan02-ok"
>
> just basic configuration and no encryption, attached is complete hostapd's
> config file. As you can guess from the SSID names, the first one always
> doesn't work, client assoc ends with the following error:
>
>
> Mind to use different MAC addresses? The rt2800 hw can only be programmed
> with a MAC address mask
> that spans the last 3 bits. In your config this would be

Ooops, seems I messed up my mailclient :)

You're using the following MAC addresses for the virtual APs:

bssid=c4:93:00:11:01:88
bssid=c6:93:00:11:01:89
bssid=c6:93:00:11:01:8a

rt2800 hw can only be configured to mask the last three bits of the
programmed MAC addresses. In your case the first MAC differs from the
other in the first byte. Please try if it works when using the same
first byte.

HTH,
Helmut


2012-11-25 23:27:27

by Petr Štetiar

[permalink] [raw]
Subject: Re: Multi-bss operation issue with rt2x00 and hostapd on rt305x platform

Petr ?tetiar <[email protected]> [2012-11-25 23:29:40]:

> I don't see a pattern here, why it didn't worked with :88, :89, :90? Just the
> last one :90 was working and :88, :89, :8a works fine. There need to be some
> hole/spacing? Thanks a lot!

Ok, I should go rather to bed (90 decimal vs 0x8a) :-) So, the BSSIDs should
simply use continuous numbering from the base BSSID and it works. Thank you
again.

-- ynezz

2012-11-25 22:29:46

by Petr Štetiar

[permalink] [raw]
Subject: Re: Multi-bss operation issue with rt2x00 and hostapd on rt305x platform

Helmut Schaa <[email protected]> [2012-11-25 22:53:00]:

> > Mind to use different MAC addresses? The rt2800 hw can only be programmed
> > with a MAC address mask that spans the last 3 bits. In your config this
> > would be
>
> Ooops, seems I messed up my mailclient :)
>
> You're using the following MAC addresses for the virtual APs:
>
> bssid=c4:93:00:11:01:88
> bssid=c6:93:00:11:01:89
> bssid=c6:93:00:11:01:8a
>
> rt2800 hw can only be configured to mask the last three bits of the
> programmed MAC addresses. In your case the first MAC differs from the
> other in the first byte. Please try if it works when using the same
> first byte.

Indeed, it was quite suspicious to me also, so I did tried that with the
following MACs:

bssid=c4:93:00:11:01:88
bssid=c4:93:00:11:01:89
bssid=c4:93:00:11:01:90

and it wasn't working for the first two, but now I did what you've suggested
and voilà, it works for all three! :) So the working setup is following:

bssid=c4:93:00:11:01:88
bssid=c4:93:00:11:01:89
bssid=c4:93:00:11:01:8a

I don't see a pattern here, why it didn't worked with :88, :89, :90? Just the
last one :90 was working and :88, :89, :8a works fine. There need to be some
hole/spacing? Thanks a lot!

-- ynezz