From: Andre Eikmeyer <dev@deq.rocks>
To: arend.vanspriel@broadcom.com
Cc: linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev,
brcm80211-dev-list.pdl@broadcom.com,
linux-kernel@vger.kernel.org,
Sasha Finkelstein <k@chaosmail.tech>,
Sven Peter <sven@kernel.org>, Janne Grunau <j@jannau.net>,
Aditya Garg <aditya.garg@linux.dev>,
Andre Eikmeyer <dev@deq.rocks>
Subject: [PATCH wireless-next v2 0/6] wifi: brcmfmac: AWDL for AirDrop on Apple T2 Macs
Date: Wed, 25 Nov 2026 20:02:48 +0100 [thread overview]
Message-ID: <20261125190254.176055-1-dev@deq.rocks> (raw)
This series adds AWDL support to brcmfmac, so Linux on the Apple T2 Macs
can send and receive files over AirDrop with Apple and latest Google or
Samsung devices.
On these Macs the Apple firmware runs AWDL itself. The host creates an
AWDL interface and sets its parameters, the firmware keeps the AWDL
schedule and carries the AWDL frames and data. Election, peer discovery
and AirDrop run in user space, which talks to the driver through vendor
commands and events of the Broadcom OUI. As discussed on v1, vendor
commands are the exception agreed for AWDL, so the vendor header
becomes ABI with this series.
The user space side is t2-drop, published under GPL license
https://github.com/kaiT2en/KaiT2en-Fedora/tree/main/apps/t2-drop
Tested on a MacBookPro15,1 (BCM4364, firmware 9.30.514.0.32.5.94) with
a MacBook Air M4 as peer. AirDrop in both directions with varying file
sizes up to 2GB.
v1 ran on the BCM4364 and BCM4377 machines of the T2 Linux community.
Changes in v2:
- Drop v1 patch 1, wireless-next matches the firmware capabilities as
whole words already
- Rebase on wireless-next, patches 1, 2 and 4 have Arend's Ack
- Patch 3: remove an AWDL interface that shows up after the interface
event timed out, tie the network device to the wiphy device in sysfs
and keep its name, keep the AWDL address out of the ARP offload table
of the primary interface, kernel-doc for the return values
- Patch 4: add the AWDL header in brcmf_netdev_start_xmit(), so tx and
rx count the bytes of the Ethernet frame, kernel-doc. The MTU stays at
1500, the firmware takes full size frames with the added header
- Patch 5: document where the parameter tables come from and the
firmware versions they are used with, fail AWDL_START when awdl,
awdl_config or slot_bss are rejected, return firmware errors from
SET_FRAMES and SET_SYNC, a quirk in feature.c instead of the chip
check, reject AWDL_STOP while a start is queued, AWDL_STOPPED with
-ENOLINK when the firmware removes the interface, UNSPEC first in the
vendor events
- Patch 6: abstract event codes for the AWDL events, mapped and
registered by the WCC vendor module, log dropped events
v1: https://lore.kernel.org/all/20261104151547.70333-1-dev@deq.rocks/
Andre Eikmeyer (6):
wifi: brcmfmac: move the interface_create definitions to fwil_types.h
wifi: brcmfmac: detect AWDL support of the firmware
wifi: brcmfmac: create and remove the AWDL interface
wifi: brcmfmac: add the AWDL data path
wifi: brcmfmac: add vendor commands for AWDL
wifi: brcmfmac: pass AWDL frames and role changes to user space
.../broadcom/brcm80211/brcmfmac/Makefile | 3 +-
.../broadcom/brcm80211/brcmfmac/awdl.c | 1111 +++++++++++++++++
.../broadcom/brcm80211/brcmfmac/awdl.h | 116 ++
.../broadcom/brcm80211/brcmfmac/cfg80211.c | 49 +-
.../broadcom/brcm80211/brcmfmac/core.c | 82 +-
.../broadcom/brcm80211/brcmfmac/core.h | 7 +
.../broadcom/brcm80211/brcmfmac/feature.c | 32 +
.../broadcom/brcm80211/brcmfmac/feature.h | 8 +-
.../broadcom/brcm80211/brcmfmac/fweh.c | 19 +
.../broadcom/brcm80211/brcmfmac/fweh.h | 7 +-
.../broadcom/brcm80211/brcmfmac/fwil_types.h | 46 +
.../broadcom/brcm80211/brcmfmac/vendor.c | 90 ++
.../broadcom/brcm80211/brcmfmac/vendor.h | 104 ++
.../broadcom/brcm80211/brcmfmac/wcc/core.c | 39 +
14 files changed, 1659 insertions(+), 54 deletions(-)
create mode 100644 drivers/net/wireless/broadcom/brcm80211/brcmfmac/awdl.c
create mode 100644 drivers/net/wireless/broadcom/brcm80211/brcmfmac/awdl.h
base-commit: 18d0bedbb5f0538396cb7f763ed9cd1dd69c5b23
--
2.56.0
next reply other threads:[~2026-11-25 19:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 19:02 Andre Eikmeyer [this message]
2026-11-25 19:02 ` [PATCH wireless-next v2 1/6] wifi: brcmfmac: move the interface_create definitions to fwil_types.h Andre Eikmeyer
2026-11-25 19:02 ` [PATCH wireless-next v2 2/6] wifi: brcmfmac: detect AWDL support of the firmware Andre Eikmeyer
2026-11-25 19:02 ` [PATCH wireless-next v2 3/6] wifi: brcmfmac: create and remove the AWDL interface Andre Eikmeyer
2026-11-25 19:02 ` [PATCH wireless-next v2 4/6] wifi: brcmfmac: add the AWDL data path Andre Eikmeyer
2026-11-25 19:02 ` [PATCH wireless-next v2 5/6] wifi: brcmfmac: add vendor commands for AWDL Andre Eikmeyer
2026-11-25 19:02 ` [PATCH wireless-next v2 6/6] wifi: brcmfmac: pass AWDL frames and role changes to user space Andre Eikmeyer
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=20261125190254.176055-1-dev@deq.rocks \
--to=dev@deq.rocks \
--cc=aditya.garg@linux.dev \
--cc=arend.vanspriel@broadcom.com \
--cc=brcm80211-dev-list.pdl@broadcom.com \
--cc=brcm80211@lists.linux.dev \
--cc=j@jannau.net \
--cc=k@chaosmail.tech \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=sven@kernel.org \
/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
all inboxes | Powered by JetHome®