Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1653621ybb; Thu, 26 Mar 2020 05:01:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvBZdISg9gQu4rvnxkeL9fF/iCap1KOZKdH/78oV5ibcV5Izg9C6WoMTiqkXQPCvatRp/Dk X-Received: by 2002:a9d:17ec:: with SMTP id j99mr5780956otj.213.1585224087571; Thu, 26 Mar 2020 05:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585224087; cv=none; d=google.com; s=arc-20160816; b=IpxBH0+62Mr4M+H6PaxGjwZ6uPCbapA5QNtQC51zson9JMrOUBzHoDmN4sEK7/EPrZ YK4IwPqlw1nGOdqcW6IMAWDw7u9eYq2eFsFsirRyIIVNelJ6zywCJb+bsYEz5ei/lC/Q nem+vYcK/z31TiOGeNW/DkAZPKELqnqPNVQxW5rrhobnQte7jUYMy3N/xgDmvb9rT9Tj Qr7/cqa7m6hPX4mUZYfrwmx2HL3sE0IMxs1UKE3Qqww0ydsysMOuEeZaTe9PdtkdCFX5 JuzfZljD2Z60+Z+S6HooSqAFhIU3TiQIQbGv2xhaHzvqtppsqu1jzXlwIk6FpelHK0C6 3luQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:cc:to:from; bh=B6DNqHiQTckDDU/5AaWWscbljRbWd4tSv+IwlsS897g=; b=xCoCtVZCbFnGnbaX8vIo8CtN/CEdGKzzl6HUa/gqXke9fSFxrEEPXufb/wYUmC5HOJ KFtONmW/TLHJewRszFlCXS0752q6yolbCDa/juXnEX4F9/NAX6SFkhwvBv7vnLavZa1T yLgZyHe1xC1YXxr4h/px8/qoJz1+XvS7LSaDUBZzK1e6RAtSobK2sA93WboB/9PH/Cf5 QI2mXN4OkSuc/4sLMuS5gUJK74hG/dkjudZp9ffLEegMS9rOMGJKETVqiE0cHPD4XGN7 hUHr9LeeeOWlf8i0IY97zrpe6OP5rqyBMxHMvXP/5CiKCaLPhafy05lzlSJZJPGEzP7j fbMw== 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 i17si942036oto.278.2020.03.26.05.01.11; Thu, 26 Mar 2020 05:01:27 -0700 (PDT) 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 S1728180AbgCZMBC (ORCPT + 99 others); Thu, 26 Mar 2020 08:01:02 -0400 Received: from paleale.coelho.fi ([176.9.41.70]:44104 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728167AbgCZMBC (ORCPT ); Thu, 26 Mar 2020 08:01:02 -0400 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 1jHRBz-0003we-Nq; Thu, 26 Mar 2020 14:01:00 +0200 From: Luca Coelho To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org Date: Thu, 26 Mar 2020 14:00:34 +0200 Message-Id: <20200326120042.578777-5-luca@coelho.fi> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200326120042.578777-1-luca@coelho.fi> References: <20200326120042.578777-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 04/12] cfg80211: Parse HE membership selector Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ilan Peer This extends the support for drivers that rebuilds IEs in the FW (same as with HT/VHT). Change-Id: I886252639604c8e3e84b8ef97962f1b0e4beec81 Signed-off-by: Ilan Peer Signed-off-by: Luca Coelho --- include/linux/ieee80211.h | 1 + include/net/cfg80211.h | 3 ++- net/wireless/nl80211.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index bdcc3165c440..7c7b974c41b1 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -1067,6 +1067,7 @@ struct ieee80211_mgmt { /* Supported rates membership selectors */ #define BSS_MEMBERSHIP_SELECTOR_HT_PHY 127 #define BSS_MEMBERSHIP_SELECTOR_VHT_PHY 126 +#define BSS_MEMBERSHIP_SELECTOR_HE_PHY 122 /* mgmt header + 1 byte category code */ #define IEEE80211_MIN_ACTION_SIZE offsetof(struct ieee80211_mgmt, u.action.u) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index c78bd4ff9e33..18e17496a904 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -1052,6 +1052,7 @@ enum cfg80211_ap_settings_flags { * @ht_required: stations must support HT * @vht_required: stations must support VHT * @twt_responder: Enable Target Wait Time + * @he_required: stations must support HE * @flags: flags, as defined in enum cfg80211_ap_settings_flags * @he_obss_pd: OBSS Packet Detection settings * @he_bss_color: BSS Color settings @@ -1081,7 +1082,7 @@ struct cfg80211_ap_settings { const struct ieee80211_vht_cap *vht_cap; const struct ieee80211_he_cap_elem *he_cap; const struct ieee80211_he_operation *he_oper; - bool ht_required, vht_required; + bool ht_required, vht_required, he_required; bool twt_responder; u32 flags; struct ieee80211_he_obss_pd he_obss_pd; diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index ad87e9db9a91..0586093420e8 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4728,6 +4728,8 @@ static void nl80211_check_ap_rate_selectors(struct cfg80211_ap_settings *params, params->ht_required = true; if (rates[2 + i] == BSS_MEMBERSHIP_SELECTOR_VHT_PHY) params->vht_required = true; + if (rates[2 + i] == BSS_MEMBERSHIP_SELECTOR_HE_PHY) + params->he_required = true; } } -- 2.25.1