Skip to contentSkip to conversation

wifi: cfg80211: Allow action frames to be transmitted with link BSS in MLD

PATCH New Rameshkumar Sundaram 1 participant 1 message Feb 1, 2023 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: cfg80211: Allow action frames to be transmitted with link BSS in MLD

Currently action frames TX only with ML address as A3(BSSID) are allowed in an ML AP, but TX for a non-ML Station can happen in any link of an ML BSS with link BSS address as A3.
In case of an MLD, if User-space has provided a valid link_id in action frame TX request, allow transmission of the frame in that link.

---
 net/wireless/mlme.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
net/wireless/mlme.c +4 -1
index 58e1fb18f85a..81d3f40d6235 100644
@@ -742,7 +742,10 @@ int cfg80211_mlme_mgmt_tx(struct cfg80211_registered_device *rdev,
 		case NL80211_IFTYPE_AP:
 		case NL80211_IFTYPE_P2P_GO:
 		case NL80211_IFTYPE_AP_VLAN:
-			if (!ether_addr_equal(mgmt->bssid, wdev_address(wdev)))
+			if (!ether_addr_equal(mgmt->bssid, wdev_address(wdev)) &&
+			    (params->link_id < 0 ||
+			     !ether_addr_equal(mgmt->bssid,
+					       wdev->links[params->link_id].addr)))
 				err = -EINVAL;
 			break;
 		case NL80211_IFTYPE_MESH_POINT:

base-commit: 4ca69027691a0039279b64cfa0aa511d9c9fde59

Signature · 1 line
2.17.1