[PATCH wireless-next v2 0/6] wifi: brcmfmac: AWDL for AirDrop on Apple T2 Macs
From: Andre Eikmeyer
Date: Wed Nov 25 2026 - 14:03:09 EST
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