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 v3 0/6] wifi: brcmfmac: AWDL for AirDrop on Apple T2 Macs
Date: Fri, 27 Nov 2026 13:40:58 +0100 [thread overview]
Message-ID: <20261127124104.233236-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.
v2 runs on the BCM4364 and BCM4377 machines of the T2 Linux community.
Changes in v3:
- awdl.c and awdl.h are ISC
- Patch 3: keep the abandoned AWDL interface until its late event is
claimed, and take an interface event that arrives right after the
timeout instead of failing
- Patch 5: remove an AWDL interface the firmware removed on its own from
a work item with RTNL and the wiphy mutex. Then send AWDL_STOPPED.
Answer a START dropped before system sleep with -ECANCELED. Document
that SET_SYNC fails with -EBADE while the firmware does not know a new
master yet
- All patches except 3 and 5 are acknowledged by Arend
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
v2: https://lore.kernel.org/all/20261125190254.176055-1-dev@deq.rocks/
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 | 1163 +++++++++++++++++
.../broadcom/brcm80211/brcmfmac/awdl.h | 123 ++
.../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 | 109 ++
.../broadcom/brcm80211/brcmfmac/wcc/core.c | 39 +
14 files changed, 1723 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-27 12:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 12:40 Andre Eikmeyer [this message]
2026-11-27 12:40 ` [PATCH wireless-next v3 1/6] wifi: brcmfmac: move the interface_create definitions to fwil_types.h Andre Eikmeyer
2026-11-27 12:41 ` [PATCH wireless-next v3 2/6] wifi: brcmfmac: detect AWDL support of the firmware Andre Eikmeyer
2026-11-27 12:41 ` [PATCH wireless-next v3 3/6] wifi: brcmfmac: create and remove the AWDL interface Andre Eikmeyer
2026-11-27 12:41 ` [PATCH wireless-next v3 4/6] wifi: brcmfmac: add the AWDL data path Andre Eikmeyer
2026-11-27 12:41 ` [PATCH wireless-next v3 5/6] wifi: brcmfmac: add vendor commands for AWDL Andre Eikmeyer
2026-11-27 12:41 ` [PATCH wireless-next v3 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=20261127124104.233236-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®