On 9 July 2015 at 20:08, Arend van Spriel <arend@xxxxxxxxxxxx> wrote: > On 07/09/2015 09:07 AM, Rafał Miłecki wrote: >> >> Hey guys, I'm afraid I hit another brcmfmac bug. >> >> First of all, I implemented a trivial workaround for the previous bug >> reported in the: >> brcmfmac: one faulty "iw interface add" command breaks in-firmware BSS >> state >> See my workaround in OpenWrt git: >> >> http://git.openwrt.org/?p=openwrt.git;a=commitdiff;h=0e6c9bd9556eea98b476ad371d64d8d16e3a9f9c >> >> So now OpenWrt's user space calls using "iw" tool don't trigger >> brcmfmac BSSes bug anymore. I can successfully use one AP interface >> per device. >> >> The problem appears when trying to use more than 1 interface. It gets >> created correctly, but setting its MAC fails. It results in wlan0-1 >> having the same MAC as wlan0 and finally having two networks (SSIDs) >> using the same MAC. That obviously doesn't work. > > > Can we please take one step back. I am not understanding how you guys use > the multiple interfaces. The multiple AP interfaces in brcmfmac are only > intended for Multiple-BSS feature as described in hostapd.conf which changes > wlan0 from STA to AP and creates additional AP interfaces, but you seem to > be creating an AP interface with iw next to a STA interface. OpenWrt tries to remove all existing interfaces and then create needed ones from the scratch. So e.g. after loading brcmfmac you have: wlan0 Lets say OpenWrt wants 2 AP interfaces, so it calls: iw dev wlan0 del iw phy phy0 interface add wlan0 type __ap iw phy phy0 interface add wlan0-1 type __ap The first command fails (brcmfmac limitation), the second one gets rejected (wlan0 already exists) and the third one creates new virtual interface. This results in having two interfaces: STA and AP. Then OpenWrt finally runs hostapd which changes wlan0 to AP and starts AP on both interfaces. > I actually have patches pending that correct the announced interface > combinations. I am currently on vacation as my family expanded with a baby > girl. Have fun! :) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html