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: 11367353 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A3CEF139A 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 8291B214AF 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:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 11367355 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B7B2B92A for ; Wed, 5 Feb 2020 23:10:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96DC8214AF for ; Wed, 5 Feb 2020 23:10:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="c91QRnAG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727479AbgBEXKP (ORCPT ); Wed, 5 Feb 2020 18:10:15 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37105 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727149AbgBEXKO (ORCPT ); Wed, 5 Feb 2020 18:10:14 -0500 Received: by mail-pl1-f196.google.com with SMTP id c23so1500508plz.4 for ; Wed, 05 Feb 2020 15:10:14 -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=uL80NuY6Vf0FAXOCp6bQHHqsmb4imTQt+pzHjrZVNIw=; b=c91QRnAGdAIMgJumd6Ttpu/6GhmRr58WzAY77df2bMCpKpTZA0hzfIiztjivuRyjEC ROwlVuaG0z8kNHEqz+DDDXlN9e+WvDxMAA2bm/WMheWCP+ROLpcVeUfi/D2qeOsV8yg+ tW9cRs3hELe4U/6dtacIrT+rDKGEGcqDbtbHc= 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=uL80NuY6Vf0FAXOCp6bQHHqsmb4imTQt+pzHjrZVNIw=; b=kYjSePyw/YSI+MmpLlLADeEwnIr3WtVC8bKYrUXCJlbkBneYwFYqZr0gxHwxRJtK+B qOMGGcoBRFxx6C6UD1w4AJQhVqaHtTRAL08h19rCeQAkFBdi+lbTntr5GsGweyAHliWd Zr3FZvrvDJ5wCcJyFLRVesmJBL4Sc865Hy0J+AQ9OiSoeac1FU4muSDrQvA6TeHRWFHL +/gM2+8xykv7zG5zQp9ByPOPGjZkU04ke4XL5KPYZ6DLo+sUkC6XyPc1NnWHTqmqH8J2 d8fJI+IT++NVEdHXsLZXRk0MPZKrM8bopUAupGadihjqKF7HvVQPVwUQ4r1zjXQ64sV4 /Qiw== X-Gm-Message-State: APjAAAUOQLDRHsrNxLFbKU+RIYYV384HToUMJEwe+L6OkNL6qVlofm2W PlUZeorhlaOzkhX3VVqXjW8IBg== X-Google-Smtp-Source: APXvYqzakOpdkvxuYOgvk6L1wnyGPVd5tj72oJq9l7/8UiIOWj5iLSHzO0JRYdU+Utu9mMEI2iFajg== X-Received: by 2002:a17:90a:ba98:: with SMTP id t24mr670019pjr.12.1580944213751; Wed, 05 Feb 2020 15:10:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 15:10:13 -0800 (PST) From: Brian Norris To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Luca Coelho , Brian Norris Subject: [PATCH 2/3] iw: pull in CHAN_NO_HE nl80211.h definitions Date: Wed, 5 Feb 2020 15:10:00 -0800 Message-Id: <20200205231001.132595-2-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 From: https://patchwork.kernel.org/patch/11343173/ https://lkml.kernel.org/linux-wireless/20200121081213.733757-1-luca@coelho.fi Signed-off-by: Brian Norris --- nl80211.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nl80211.h b/nl80211.h index 809ef9165684..d996bac97e9d 100644 --- a/nl80211.h +++ b/nl80211.h @@ -3587,6 +3587,8 @@ enum nl80211_wmm_rule { * @NL80211_FREQUENCY_ATTR_WMM: this channel has wmm limitations. * This is a nested attribute that contains the wmm limitation per AC. * (see &enum nl80211_wmm_rule) + * @NL80211_FREQUENCY_ATTR_NO_HE: HE operation is not allowed on this channel + * in current regulatory domain. * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number * currently defined * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use @@ -3616,6 +3618,7 @@ enum nl80211_frequency_attr { NL80211_FREQUENCY_ATTR_NO_20MHZ, NL80211_FREQUENCY_ATTR_NO_10MHZ, NL80211_FREQUENCY_ATTR_WMM, + NL80211_FREQUENCY_ATTR_NO_HE, /* keep last */ __NL80211_FREQUENCY_ATTR_AFTER_LAST, @@ -3813,6 +3816,7 @@ enum nl80211_sched_scan_match_attr { * @NL80211_RRF_NO_HT40PLUS: channels can't be used in HT40+ operation * @NL80211_RRF_NO_80MHZ: 80MHz operation not allowed * @NL80211_RRF_NO_160MHZ: 160MHz operation not allowed + * @NL80211_RRF_NO_HE: HE operation not allowed */ enum nl80211_reg_rule_flags { NL80211_RRF_NO_OFDM = 1<<0, @@ -3830,6 +3834,7 @@ enum nl80211_reg_rule_flags { NL80211_RRF_NO_HT40PLUS = 1<<14, NL80211_RRF_NO_80MHZ = 1<<15, NL80211_RRF_NO_160MHZ = 1<<16, + NL80211_RRF_NO_HE = 1<<17, }; #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR 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: 11367357 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2613A139A 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 041772072B 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)) {