From patchwork Wed Feb 5 23:09:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 216517 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A49BCC35247 for ; Wed, 5 Feb 2020 23:10:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6FC592072B for ; Wed, 5 Feb 2020 23:10:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="cvyLqIHY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727279AbgBEXKN (ORCPT ); Wed, 5 Feb 2020 18:10:13 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45441 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727149AbgBEXKN (ORCPT ); Wed, 5 Feb 2020 18:10:13 -0500 Received: by mail-pg1-f195.google.com with SMTP id b9so1686339pgk.12 for ; Wed, 05 Feb 2020 15:10:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TqEp2SmmW+SNuykFM4pNlhOmQNUpi+heCzDD1HjUq+0=; b=cvyLqIHYOitniKPqISdLIoFsxc19rhBtTDoZxfnTDElOee4/H1cT6XLEM+6cBvwR0X 2loEEyI5FLpTyfmEZTJi6bZiKfX7LHcoP5ZVVIVCEuJnrZZx18nZRS7GQ/GkGuofMECT o2rKo/9oe/RL2A+SRVad3uoqtQ7ovnXlTuL/w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TqEp2SmmW+SNuykFM4pNlhOmQNUpi+heCzDD1HjUq+0=; b=DxU7CehLi4HsQucBcc1pbX70XOfUtu5rdR89/acdnWwvqCHRXwl94x9ELhkmrqjnVu fUzWGxhSNdLAwa4/1mBjwivbsabG7aDAWgP/J1WP+u2fYcOoTIEoDEzIa2TMfhfbVRJu nN9t3a26MeqZ/vgfnZJp4S72/QIvUBVj941K2sGI3OQgp+eUuzPE6Xm8tL42+Qx9cN9I edMsjV3q4xhdKRIJfOR2WkyJYekZcDKwPJzG2ADsr3ecQh76wiMxb8VUA4cnG3JA4SKX g+lz5vn0cFjvKN1+mKK+BrZqN4wmEq4AHAQaMwmH1AfvhwrtxNxtob7Ro5HNTsbpDqX0 Bahg== X-Gm-Message-State: APjAAAVbjtl5rIhXK2qClaWfqUaX9LGWtfFLORgKteK+ALigDx+kNCvy OtsuABqGUmQVbzvEq3j2N47oDGkb7O0= X-Google-Smtp-Source: APXvYqxAwoRMA8rJ6Xm7bPNUHbQCQk8FSc7NObtwNUZzozvaKmlloHXjCD5bdrswqYkbgfhHS+Q5IA== X-Received: by 2002:aa7:9d87:: with SMTP id f7mr418375pfq.138.1580944212559; Wed, 05 Feb 2020 15:10:12 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:1:534:b7c0:a63c:460c]) by smtp.gmail.com with ESMTPSA id t63sm567963pfb.70.2020.02.05.15.10.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 15:10:11 -0800 (PST) From: Brian Norris To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Luca Coelho , Brian Norris Subject: [PATCH 1/3] iw: update nl80211.h Date: Wed, 5 Feb 2020 15:09:59 -0800 Message-Id: <20200205231001.132595-1-briannorris@chromium.org> X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Pulled from -next. Signed-off-by: Brian Norris --- nl80211.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/nl80211.h b/nl80211.h index 5eab191607f8..809ef9165684 100644 --- a/nl80211.h +++ b/nl80211.h @@ -2400,6 +2400,8 @@ enum nl80211_commands { * @NL80211_ATTR_VLAN_ID: VLAN ID (1..4094) for the station and VLAN group key * (u16). * + * @NL80211_ATTR_HE_BSS_COLOR: nested attribute for BSS Color Settings. + * * @NUM_NL80211_ATTR: total number of nl80211_attrs available * @NL80211_ATTR_MAX: highest attribute number currently defined * @__NL80211_ATTR_AFTER_LAST: internal use @@ -2864,6 +2866,8 @@ enum nl80211_attrs { NL80211_ATTR_VLAN_ID, + NL80211_ATTR_HE_BSS_COLOR, + /* add attributes here, update the policy in nl80211.c */ __NL80211_ATTR_AFTER_LAST, @@ -6587,5 +6591,27 @@ enum nl80211_obss_pd_attributes { NL80211_HE_OBSS_PD_ATTR_MAX = __NL80211_HE_OBSS_PD_ATTR_LAST - 1, }; +/** + * enum nl80211_bss_color_attributes - BSS Color attributes + * @__NL80211_HE_BSS_COLOR_ATTR_INVALID: Invalid + * + * @NL80211_HE_BSS_COLOR_ATTR_COLOR: the current BSS Color. + * @NL80211_HE_BSS_COLOR_ATTR_DISABLED: is BSS coloring disabled. + * @NL80211_HE_BSS_COLOR_ATTR_PARTIAL: the AID equation to be used.. + * + * @__NL80211_HE_BSS_COLOR_ATTR_LAST: Internal + * @NL80211_HE_BSS_COLOR_ATTR_MAX: highest BSS Color attribute. + */ +enum nl80211_bss_color_attributes { + __NL80211_HE_BSS_COLOR_ATTR_INVALID, + + NL80211_HE_BSS_COLOR_ATTR_COLOR, + NL80211_HE_BSS_COLOR_ATTR_DISABLED, + NL80211_HE_BSS_COLOR_ATTR_PARTIAL, + + /* keep last */ + __NL80211_HE_BSS_COLOR_ATTR_LAST, + NL80211_HE_BSS_COLOR_ATTR_MAX = __NL80211_HE_BSS_COLOR_ATTR_LAST - 1, +}; #endif /* __LINUX_NL80211_H */ From patchwork Wed Feb 5 23:10:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 216516 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3516EC35247 for ; Wed, 5 Feb 2020 23:10:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 056D4214AF for ; Wed, 5 Feb 2020 23:10:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Qn3JBYUI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727486AbgBEXKQ (ORCPT ); Wed, 5 Feb 2020 18:10:16 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41419 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727149AbgBEXKP (ORCPT ); Wed, 5 Feb 2020 18:10:15 -0500 Received: by mail-pf1-f195.google.com with SMTP id j9so1986668pfa.8 for ; Wed, 05 Feb 2020 15:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/rjZ1BE1+tmBdqT4ZzG4XZPhZyhsStFok3T+POKaIrY=; b=Qn3JBYUIhHFG2nHClrFYb+w0DziOtdwoLgzKUaPR8XXgVpnk2rXjK7MmTWJRNgMmrv uNbA3QiovEm2N+hX72jMjcrCNBkubOxUcBSKa5yJksVYTsRUVrCBGqNaedaTTBMj1uLt P+l6iyN4VAZmrfwyaTYQjiirzEskU2fftCpqc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/rjZ1BE1+tmBdqT4ZzG4XZPhZyhsStFok3T+POKaIrY=; b=oFreVKtxbKadSvm2+0guRCUUcVtzJcoEixZlOEfj+wyhs1RigYirJCnWznX4iKa9As qDB76qAGtwSxwT2uEwD1svH9sDpHjN+ccp3rDfJM6NVx3VJhf/FOMfOSNjiOjjA5hnSW 6e5CBAnP0aNqIEBCiDRrH92bL8n0S7KPssmj8m3cseGsh8qUCclgI1yNSE84w8c8KbZh CzMbqXteYONIQTJiYGz2kbtW9HknFXPlQCmc2i98gx4ghirx9fYsBxP2SWjVcSIdfxYj On6Wao5rs8iqLysRS7mwedVtT9asp1d8guMOLesHOuDnK5yUlDnKpQULQG/jR+HFfX0h gNWw== X-Gm-Message-State: APjAAAULMsxrx88yO+OhCcCMxcWsrNmJ0M2DWKEex6WBrowioY3IsA9i kn5HS9ss2sqzeC165k/4OIdzGQ== X-Google-Smtp-Source: APXvYqw+sqm/l1v1ZKkGd+orF85F3NgOT+OuF6bzz5Pj5jWo3jMKTuJXJgJqKxndPkuGxbDFkfJqbA== X-Received: by 2002:a65:5549:: with SMTP id t9mr247688pgr.439.1580944214992; Wed, 05 Feb 2020 15:10:14 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:1:534:b7c0:a63c:460c]) by smtp.gmail.com with ESMTPSA id t63sm567963pfb.70.2020.02.05.15.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 15:10:14 -0800 (PST) From: Brian Norris To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Luca Coelho , Brian Norris Subject: [PATCH 3/3] iw: reg: parse the NO_HE regulatory flag Date: Wed, 5 Feb 2020 15:10:01 -0800 Message-Id: <20200205231001.132595-3-briannorris@chromium.org> X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog In-Reply-To: <20200205231001.132595-1-briannorris@chromium.org> References: <20200205231001.132595-1-briannorris@chromium.org> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This isn't supported in wireless-regdb yet, but self-managed drivers are preparing to report it: https://patchwork.kernel.org/patch/11343173/ https://lkml.kernel.org/linux-wireless/20200121081213.733757-1-luca@coelho.fi Signed-off-by: Brian Norris --- reg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reg.c b/reg.c index a2368df39009..db1b12906519 100644 --- a/reg.c +++ b/reg.c @@ -209,6 +209,7 @@ static int print_reg_handler(struct nl_msg *msg, void *arg) PARSE_FLAG(NL80211_RRF_NO_HT40PLUS, "NO-HT40PLUS"); PARSE_FLAG(NL80211_RRF_NO_80MHZ, "NO-80MHZ"); PARSE_FLAG(NL80211_RRF_NO_160MHZ, "NO-160MHZ"); + PARSE_FLAG(NL80211_RRF_NO_HE, "NO-HE"); /* Kernels that support NO_IR always turn on both flags */ if ((flags & NL80211_RRF_NO_IR) && (flags & __NL80211_RRF_NO_IBSS)) {