hostapd: accept a Management frame to the AP MLD address

mac80211 gives a Management frame from an associated non-AP MLD to
hostapd with the AP MLD address as DA, but keeps a wildcard BSSID. An
AP MLD accepts the MLD address in the BSSID field alone, so it drops a
Public Action frame with the wildcard BSSID from an associated MLD,
for example a DPP Connection Status Result. Accept a DA equal to the
AP MLD address as well.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau committed 2026-11-15 11:17:20 +00:00
1 parent 0c815f216d
commit ebc40d094f
1 file changed
+28
@@ -0,0 +1,28 @@
From: Felix Fietkau <nbd@nbd.name>
Subject: [PATCH] AP MLD: accept a Management frame to the AP MLD address
mac80211 translates the Address 1 field of an individually addressed
Management frame from an associated non-AP MLD to the AP MLD address.
It translates the Address 3 field only where it holds the BSSID of the
link. A Public Action frame with the wildcard BSSID, for example a DPP
Connection Status Result from an enrollee that just associated, thus
reaches hostapd with the AP MLD address as DA and the wildcard BSSID.
ieee802_11_mgmt() accepts the AP MLD address in the BSSID field only,
compares the DA with the address of the link, and drops the frame.
Accept a frame whose DA is the AP MLD address as well.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -8783,7 +8783,8 @@ int ieee802_11_mgmt(struct hostapd_data
stype != WLAN_FC_STYPE_ACTION) &&
#ifdef CONFIG_IEEE80211BE
!(hapd->conf->mld_ap &&
- ether_addr_equal(hapd->mld->mld_addr, mgmt->bssid)) &&
+ (ether_addr_equal(hapd->mld->mld_addr, mgmt->bssid) ||
+ ether_addr_equal(hapd->mld->mld_addr, mgmt->da))) &&
#endif /* CONFIG_IEEE80211BE */
#ifdef CONFIG_NAN_USD
!ether_addr_equal(mgmt->da, nan_network_id) &&