netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem with bridge (mcast-to-ucast + hairpin) and Broadcom's 802.11f in their FullMAC fw
@ 2018-02-27 10:08 Rafał Miłecki
  2018-02-27 10:14 ` Rafał Miłecki
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Rafał Miłecki @ 2018-02-27 10:08 UTC (permalink / raw)
  To: Linus Lüssing, Felix Fietkau, Arend van Spriel, Franky Lin,
	Hante Meuleman, Chi-Hsien Lin, Wright Feng, Pieter-Paul Giesberts
  Cc: Network Development,
	open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER, bridge,
	brcm80211-dev-list, inux-wireless

I've problem when using OpenWrt/LEDE on a home router with Broadcom's
FullMAC WiFi chipset.


First of all OpenWrt/LEDE uses bridge interface for LAN network with:
1) IFLA_BRPORT_MCAST_TO_UCAST
2) Clients isolation in hostapd
3) Hairpin mode enabled

For more details please see Linus's patch description:
https://patchwork.kernel.org/patch/9530669/
and maybe hairpin mode patch:
https://lwn.net/Articles/347344/

Short version: in that setup packets received from a bridged wireless
interface can be handled back to it for transmission.


Now, Broadcom's firmware for their FullMAC chipsets in AP mode
supports an obsoleted 802.11f AKA IAPP standard. It's a roaming
standard that was replaced by 802.11r.

Whenever a new station associates, firmware generates a packet like:
ff ff ff ff  ff ff ec 10  7b 5f ?? ??  00 06 00 01  af 81 01 00
(just masked 2 bytes of my MAC)

For mode details you can see discussion in my brcmfmac patch thread:
https://patchwork.kernel.org/patch/10191451/


The problem is that bridge (in setup as above) handles such a packet
back to the device.

That makes Broadcom's FullMAC firmware believe that a given station
just connected to another AP in a network (which doesn't even exist).
As a result firmware immediately disassociates that station. It's
simply impossible to connect to the router. Every association is
followed by immediate disassociation.


Can you see any solution for this problem? Is that an option to stop
multicast-to-unicast from touching 802.11f packets? Some other ideas?
Obviously I can't modify Broadcom's firmware and drop that obsoleted
standard.

-- 
Rafał

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-03-13  9:18 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-27 10:08 Problem with bridge (mcast-to-ucast + hairpin) and Broadcom's 802.11f in their FullMAC fw Rafał Miłecki
2018-02-27 10:14 ` Rafał Miłecki
2018-02-28 11:31   ` Arend van Spriel via Bridge
     [not found]     ` <5A969313.5050501-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2018-03-12  9:49       ` Rafał Miłecki
     [not found] ` <20180227090556.02a24a0d@xeon-e3>
2018-03-12  9:46   ` Rafał Miłecki
     [not found]     ` <CACna6rxP4ATE2f6XJi7XKDLe2L_Z43aLreEHDCfGicksYTb0xg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-12 11:40       ` Linus Lüssing
     [not found] ` <CACna6rz9L09g9oeHhvt209Tg1E3gKgmhGnYF653AdkXfZf=4kw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-12 11:08   ` Linus Lüssing
2018-03-12 11:48     ` Linus Lüssing
2018-03-12 21:52       ` Rafał Miłecki
2018-03-12 21:49     ` Rafał Miłecki
2018-03-12 22:42   ` Rafał Miłecki
     [not found]     ` <20180312160103.1a043936@xeon-e3>
2018-03-13  6:23       ` Rafał Miłecki
2018-03-13  7:20   ` Felix Fietkau
     [not found]     ` <c24304cf-7e0d-137a-94b1-d8f4e61a3b70-Vt+b4OUoWG0@public.gmane.org>
2018-03-13  9:18       ` Arend van Spriel
2018-03-13  7:17 ` Felix Fietkau

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).