Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2874170pxu; Sun, 29 Nov 2020 07:35:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqXnMmi9VeMi+epKQFX8borg89Ea1M31cSd7ZC3VbrtERkV4Wf6IRO82t/bJ5eogHo9UIZ X-Received: by 2002:a05:6402:229b:: with SMTP id cw27mr2425452edb.23.1606664100817; Sun, 29 Nov 2020 07:35:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606664100; cv=none; d=google.com; s=arc-20160816; b=LJX16F+mCe+i9BPbHnOOLoZJS+uTBVqZ4E6K8N53UYDuL2kXLY8WLTBK159mrLp51g WMHcWoK/cPc5Euah+Q6pcQCRv9tBQp/YddtXZnsBrXuKoLwuoIBdViKEVU4CE3gCTCq0 HtqLDc1WzDen4B3cPEqREHXPlLwP1SOMMJnK0VhLJFB+8n0vth7hc00uJYLXLA2hl3yZ USUZtL30Jy8cS+/Tj8GX9wtvQgLZyppT1bs+SZDPewWDByUi5h6FT/D0f/7ziyjpeiy+ OtxldBSvAaIb6z6fJQYx5k2U46axPTxHrJ6EMH2LoM+G21UtXaILqT64Q3WDSQJ7g7Z4 F+Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from; bh=ByMUjUYHCm9w7829JrX3TtGHv0+ZEZs1xx+29+HID3c=; b=EWjy3FyyLoqKJsUPyX/sGwszEiiLWDEtQI6TWQgKZV+xQBZHpvqIzOa7ZgwFRn6ksh 8de4ZLChyl9c+//KVRy7N4uT8oPieXstJYbniQiux2+81hEfmov8yC/xg/hmOng2JhF5 pMmNS5nqVP9Av2hZ2/Of84t9vav7ixe3c3ij8LpGhuJhCysLgOR5qqLpxg3YGxpqHywb nGE6Q4zL5wCJwfHlh9MufE+kfihkrEDxKpcl00UEOc9lnBmOHCK3a7TJQXr04Ldevynm lMwZmBqxDDroWQjba5WXoSpX4/C6+6GsG+aGxBHT17MzZqWML6Ji1x1moGshnXK8pxf4 Hi5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c26si8719922edv.182.2020.11.29.07.34.37; Sun, 29 Nov 2020 07:35:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727973AbgK2Pbt (ORCPT + 99 others); Sun, 29 Nov 2020 10:31:49 -0500 Received: from paleale.coelho.fi ([176.9.41.70]:33532 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726021AbgK2Pbs (ORCPT ); Sun, 29 Nov 2020 10:31:48 -0500 Received: from 91-156-6-193.elisa-laajakaista.fi ([91.156.6.193] helo=redipa.ger.corp.intel.com) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kjOfF-0035ld-Ae; Sun, 29 Nov 2020 17:31:01 +0200 From: Luca Coelho To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org Date: Sun, 29 Nov 2020 17:30:47 +0200 Message-Id: X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201129153055.1971298-1-luca@coelho.fi> References: <20201129153055.1971298-1-luca@coelho.fi> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP autolearn=ham autolearn_force=no version=3.4.4 Subject: [PATCH 05/13] mac80211: Skip entries with SAE H2E only membership selector Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ilan Peer When parsing supported rates IE. Signed-off-by: Ilan Peer Signed-off-by: Luca Coelho --- net/mac80211/mlme.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index b0afb61d9e84..6de63ba6b1c8 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -3199,8 +3199,8 @@ static void ieee80211_get_rates(struct ieee80211_supported_band *sband, *have_higher_than_11mbit = true; /* - * Skip HT, VHT and HE BSS membership selectors since they're - * not rates. + * Skip HT, VHT, HE and SAE H2E only BSS membership selectors + * since they're not rates. * * Note: Even though the membership selector and the basic * rate flag share the same bit, they are not exactly @@ -3208,7 +3208,8 @@ static void ieee80211_get_rates(struct ieee80211_supported_band *sband, */ if (supp_rates[i] == (0x80 | BSS_MEMBERSHIP_SELECTOR_HT_PHY) || supp_rates[i] == (0x80 | BSS_MEMBERSHIP_SELECTOR_VHT_PHY) || - supp_rates[i] == (0x80 | BSS_MEMBERSHIP_SELECTOR_HE_PHY)) + supp_rates[i] == (0x80 | BSS_MEMBERSHIP_SELECTOR_HE_PHY) || + supp_rates[i] == (0x80 | BSS_MEMBERSHIP_SELECTOR_SAE_H2E)) continue; for (j = 0; j < sband->n_bitrates; j++) { -- 2.29.2