linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stanislaw Gruszka <sgruszka@redhat.com>
To: Felix Fietkau <nbd@nbd.name>
Cc: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/7] mt76x02: use mask for vifs
Date: Mon, 28 Jan 2019 14:04:28 +0100	[thread overview]
Message-ID: <20190128130427.GB6002@redhat.com> (raw)
In-Reply-To: <f73122c1-3106-eee6-c288-78287273494c@nbd.name>

On Mon, Jan 28, 2019 at 01:29:27PM +0100, Felix Fietkau wrote:
> On 2019-01-28 12:16, Stanislaw Gruszka wrote:
> > On Mon, Jan 28, 2019 at 10:02:01AM +0100, Stanislaw Gruszka wrote:
> >> On Mon, Jan 28, 2019 at 09:41:45AM +0100, Felix Fietkau wrote:
> >> > >> Moreover I am a little worried about tpt regressions with this patch.
> >> > >> Are you sure that if you use complete different mac addresses on a multivif scenario
> >> > >> you can get the same tpt on all the interfaces? Could you please provide some
> >> > >> tpt results?
> >> > > 
> >> > > How exactly posted patch can cause tpt regression ?
> >> > > 
> >> > > Posted patch just add possibility to configure HW MAC address
> >> > > by this:
> >> > > 
> >> > > iw dev wlan0 del
> >> > > iw phy phy0 interface add wlan0 type managed addr 00:11:22:33:44:55
> >> > > 
> >> > > what is feature of mt76x2u. Patch just extend that possibly to other
> >> > > mt76x02 devices and allow to remove custom mt76x2u add_interfacea
> >> > > callback.
> >> > The main part that could cause issues is that you're changing the way
> >> > that the vif index is calculated. Without the patch, it's calculated
> >> > from the MAC address in a way consistent with what the hardware expects.
> >> > With the patch, it's just allocated from a mask.
> >> > The vif index ends up being passed down to the hardware as a BSS index
> >> > WCID attribute in mt76x02_mac_wcid_setup.
> >> > We would have to run some tests with multiple AP interfaces, bringing up
> >> > secondary interfaces in a different order to see if there are any
> >> > regressions there if the BSS index no longer matches the MAC address
> >> > based index.
> >> 
> >> Ok, that objection make sense.  I'll check that.
> > 
> > I'm not sure if I'm doing something wrong or current code is
> > wrong. But when I configure multi bssid's is hostapd.conf like this:
> > 
> > 02:aa:bb:cc:dd:e0
> > 06:aa:bb:cc:dd:e0
> > 0a:aa:bb:cc:dd:e0
> > 
> > hostapd fail with "Too many bits in the BSSID mask" error . To make hostapd
> > work, I have configure bssid's like this:
> Do you have a bssid mask set? I don't think the current code does that.
> Also, in OpenWrt, I didn't see any issue like that.

Not sure if there is bssid mask option , seems hostapd calculate that
from provided bssid= fields. However I realized there is

use_driver_iface_addr=1

and that make things work as expected.

Thanks
Stanislaw

  reply	other threads:[~2019-01-28 13:08 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-24 15:44 [PATCH 0/7] mt76x02: Beacon support for USB Stanislaw Gruszka
2019-01-24 15:44 ` [PATCH 1/7] mt76x02: use mask for vifs Stanislaw Gruszka
2019-01-24 16:12   ` Lorenzo Bianconi
2019-01-24 16:20     ` Stanislaw Gruszka
2019-01-24 16:35       ` Lorenzo Bianconi
2019-01-24 22:20         ` Lorenzo Bianconi
2019-01-25  8:25           ` Stanislaw Gruszka
2019-01-25  9:02             ` Lorenzo Bianconi
2019-01-25  9:06               ` Stanislaw Gruszka
2019-01-25  9:47               ` Stanislaw Gruszka
2019-01-25 10:25                 ` Lorenzo Bianconi
2019-01-25 12:41                   ` Stanislaw Gruszka
2019-01-28  8:41                     ` Felix Fietkau
2019-01-28  9:02                       ` Stanislaw Gruszka
2019-01-28 11:16                         ` Stanislaw Gruszka
2019-01-28 12:29                           ` Felix Fietkau
2019-01-28 13:04                             ` Stanislaw Gruszka [this message]
2019-01-24 15:44 ` [PATCH 2/7] mt76x02: use commmon add interface for mt76x2u Stanislaw Gruszka
2019-01-24 15:44 ` [PATCH 3/7] mt76x02: initialize mutli bss mode when set up address Stanislaw Gruszka
2019-01-24 15:44 ` [PATCH 4/7] mt76x02: minor beaconing init changes Stanislaw Gruszka
2019-01-24 22:32   ` Lorenzo Bianconi
2019-01-24 15:44 ` [PATCH 5/7] mt76x02: init beacon config for mt76x2u Stanislaw Gruszka
2019-01-24 22:33   ` Lorenzo Bianconi
2019-01-24 15:44 ` [PATCH 6/7] mt76: beaconing fixes for USB Stanislaw Gruszka
2019-01-24 22:50   ` Lorenzo Bianconi
2019-01-28  8:30     ` Stanislaw Gruszka
2019-01-24 15:44 ` [PATCH 7/7] mt76x02: enable support for IBSS, AP and MESH Stanislaw Gruszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190128130427.GB6002@redhat.com \
    --to=sgruszka@redhat.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo.bianconi@redhat.com \
    --cc=nbd@nbd.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).