On Fri, Nov 09, 2018 at 02:31:31PM +0100, Lorenzo Bianconi wrote:
> >
> > Anyway I think, to support MAC address change, we should not filter
> > based on MAC address, but maybe only on BSSID ?
> >
> > Thanks
> > Stanislaw
>
> You can create the interface with a given mac address
>
> # iw phy phy0 interface add wlp0s4u1 type managed addr 00:11:22:33:44:55
I realized I have ancient version of iw :-)
Ok, so to do not break that we can add it to common function like this:
+ if (vif->type == NL80211_IFTYPE_STATION) {
+ if (idx == 0)
+ mt76x02_mac_init_mbss(dev, vif->addr);
idx += 8;
+ }
Thanks
Stanislaw