Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2221163ybv; Mon, 24 Feb 2020 01:21:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzVPQUNYPVzp0QLO5OdYY7tl0oeU+jMLRR3ELu8n//Z1FwDpal/UeCzcmH7Y8sMfTfYv5XT X-Received: by 2002:a9d:6647:: with SMTP id q7mr40975768otm.35.1582536079083; Mon, 24 Feb 2020 01:21:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582536079; cv=none; d=google.com; s=arc-20160816; b=0xz64SeMc9ZNEalT1xsuTk5/DFSrXsAS6Ex59+bfFQiN+OHxT0HBry814Yu4Lv02GV Dw3f7L7MJaNCg3LlWHV6q3lxDmt3udfpLcrrgoy6vc1kT/pYndBzxVpzOwi/icJJ8GHe KcwyxAiQp7KLlkBGMoMjZtt5bnPzi7bJsxdjcFujILbU7Td96CtgvZf3A9f0hrEpOpLs sYxecCUtJOYrkf06lFP9una3yBy/M/aWQGmzZmdxIMIn+CHQJQXZriTxpo1QtFYGC781 L9sJ+j2WJM9Y0pWu7nP8rQYqK8OrzLuYBRaQl+qmhwImInUESZhNUfWAPoyRfAfXkVnZ 9eDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=uN5w03jOh/WU30al2+bQ4SODiQGMqF4CxoNb+QN8l6g=; b=pHMJBzdbLn7ziE1B0pR2K9mHBmv9zMis60wI6kDUT6ExWcGdzqj3PFV3j5yQl5M7RY Sh4G8lQxVFgAm2w/dzmlcYZJvIFXd3Q+4CdW6xERTdsa9X7OhYYdViqALsJJdiuhGBUI luRJk/ryxPZKYwIdtqNM5HAcF9dMiD/8C0afmnEw6oSYO16LjnsgpDLvQDLJyVnx+rem 2Wl0s6+xbsjWBjakGXROR+zLpW1xLwKDi6Y3LW/lDtH1+roduZH7KiYkOP+bHe7CH/ZG bjMg/ljE4YcKC0ba5b4x9N4a/oyLUgKxnK69QHeybAV3KZ9JqUdlFxNEDxOb/+tSRzvF Clww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si5851233oti.311.2020.02.24.01.21.08; Mon, 24 Feb 2020 01:21:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727202AbgBXJTY (ORCPT + 99 others); Mon, 24 Feb 2020 04:19:24 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:57562 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbgBXJTY (ORCPT ); Mon, 24 Feb 2020 04:19:24 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1j69ta-006AMd-50; Mon, 24 Feb 2020 10:19:22 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Markus Theil , Johannes Berg Subject: [PATCH 1/2] Revert "mac80211: support NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_MAC_ADDRS" Date: Mon, 24 Feb 2020 10:19:11 +0100 Message-Id: <20200224101910.b87da63a3cd6.Ic94bc51a370c4aa7d19fbca9b96d90ab703257dc@changeid> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg This reverts commit 9b125c27998719288e4dcf2faf54511039526692. As Jouni points out, there's really no need for this, since the RSN pre-authentication frames are normal data frames, not port control frames (locally). Fixes: 9b125c279987 ("mac80211: support NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_MAC_ADDRS") Signed-off-by: Johannes Berg --- net/mac80211/main.c | 2 -- net/mac80211/tx.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index cae3a34d3503..944e86da5c65 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -589,8 +589,6 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len, wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_FILS_STA); wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211); - wiphy_ext_feature_set(wiphy, - NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_MAC_ADDRS); if (!ops->hw_scan) { wiphy->features |= NL80211_FEATURE_LOW_PRIORITY_SCAN | diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 8dd93072f6e6..2645a39cce88 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -5315,7 +5315,7 @@ int ieee80211_tx_control_port(struct wiphy *wiphy, struct net_device *dev, ehdr = skb_push(skb, sizeof(struct ethhdr)); memcpy(ehdr->h_dest, dest, ETH_ALEN); - memcpy(ehdr->h_source, src, ETH_ALEN); + memcpy(ehdr->h_source, sdata->vif.addr, ETH_ALEN); ehdr->h_proto = proto; skb->dev = dev; -- 2.24.1