Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21571394ybl; Mon, 6 Jan 2020 07:11:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwOfOCSO9H/K081J++rhBWKzhS5Pi163A+AYqvSgQpYL34RqoZgRhnzUmJBYLwyp2AxDYSm X-Received: by 2002:aca:cdd6:: with SMTP id d205mr5383861oig.90.1578323462989; Mon, 06 Jan 2020 07:11:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578323462; cv=none; d=google.com; s=arc-20160816; b=eQyhSY1ZbQ6cvRx7Tb1h5ZUVjEHzAmCF37kB9rZb2oPCjl2lYU6X/U+YUn507+Wl1G lb6848qkpvYzcj4NqSiPBQOSN0IoNsDIcj2pe/gm7OJ5bRtwGEeoBM4xmxXBDdompqA0 fXJvL59nibdz5mY7HT2XvMsDyVuTA2alc5HI7HR05OojMKRL2hpwAEyd9dzf1jHKVgLe 8QVjMFbZ+G4+6c5QJ2qFtrNoyxqYezb/L62bwMLB1egb8Iwn9F99iKv0k2GFxOQSP/Xq XyIVk82tIFKFbLEyfR+LkDX/t0Nn4eafEhpC4aF08IZ+t+kDtwt51w/sURyOEXLKazGt NIDg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LqGWbVeHAz7lihsXTOwk9HOrlZHC5eXr4FtWk6qIPDI=; b=bZNN7ru6BUUaAFrAr4JnISbcbEnnsVdj7BLbo2cyhLlXYHSyN9Xf1j5MEAb/Oh/TkG IJ27W5fmIBL0MA9CoHcU5iHm8qmm/BYbbwF734p6Q9P5D85BZrwMgX7VCIympAinktYO 6Kp9y1p/ue6iqYbrcOl1nVrqpzYe6uuorlyprmnWnuIBM+TKtxSN8aZdunMZuPj4NW5V f6XNTuytLMvS5bKhQ+KVdRxq2IV4++Vwgo4nP6LHNcDxkjK+W5nJcycRQu7vcgbyaxyW TYIgvj+hzsjZqMdhKqQbOXy388ZFPuKDf3x/40yp5H07WuItbofVFbWQsr9kA3FJukIG sGmA== 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 v3si31373421oif.122.2020.01.06.07.10.50; Mon, 06 Jan 2020 07:11:02 -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 S1726551AbgAFPKd (ORCPT + 99 others); Mon, 6 Jan 2020 10:10:33 -0500 Received: from smail.rz.tu-ilmenau.de ([141.24.186.67]:41881 "EHLO smail.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbgAFPKb (ORCPT ); Mon, 6 Jan 2020 10:10:31 -0500 Received: from localhost.localdomain (unknown [141.24.207.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smail.rz.tu-ilmenau.de (Postfix) with ESMTPSA id F12DC580073; Mon, 6 Jan 2020 16:10:29 +0100 (CET) From: Markus Theil To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Markus Theil Subject: [PATCH 3/4] update nl80211.h Date: Mon, 6 Jan 2020 16:10:23 +0100 Message-Id: <20200106151024.124315-4-markus.theil@tu-ilmenau.de> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200106151024.124315-1-markus.theil@tu-ilmenau.de> References: <20200106151024.124315-1-markus.theil@tu-ilmenau.de> 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 Signed-off-by: Markus Theil --- nl80211.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/nl80211.h b/nl80211.h index beee59c..5eab191 100644 --- a/nl80211.h +++ b/nl80211.h @@ -248,6 +248,22 @@ * %NL80211_ATTR_SAE_PASSWORD. */ +/** + * DOC: VLAN offload support for setting group keys and binding STAs to VLANs + * + * By setting @NL80211_EXT_FEATURE_VLAN_OFFLOAD flag drivers can indicate they + * support offloading VLAN functionality in a manner where the driver exposes a + * single netdev that uses VLAN tagged frames and separate VLAN-specific netdevs + * can then be added using RTM_NEWLINK/IFLA_VLAN_ID similarly to the Ethernet + * case. Frames received from stations that are not assigned to any VLAN are + * delivered on the main netdev and frames to such stations can be sent through + * that main netdev. + * + * %NL80211_CMD_NEW_KEY (for group keys), %NL80211_CMD_NEW_STATION, and + * %NL80211_CMD_SET_STATION will optionally specify vlan_id using + * %NL80211_ATTR_VLAN_ID. + */ + /** * enum nl80211_commands - supported nl80211 commands * @@ -571,6 +587,14 @@ * set of BSSID,frequency parameters is used (i.e., either the enforcing * %NL80211_ATTR_MAC,%NL80211_ATTR_WIPHY_FREQ or the less strict * %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT). + * Driver shall not modify the IEs specified through %NL80211_ATTR_IE if + * %NL80211_ATTR_MAC is included. However, if %NL80211_ATTR_MAC_HINT is + * included, these IEs through %NL80211_ATTR_IE are specified by the user + * space based on the best possible BSS selected. Thus, if the driver ends + * up selecting a different BSS, it can modify these IEs accordingly (e.g. + * userspace asks the driver to perform PMKSA caching with BSS1 and the + * driver ends up selecting BSS2 with different PMKSA cache entry; RSNIE + * has to get updated with the apt PMKID). * %NL80211_ATTR_PREV_BSSID can be used to request a reassociation within * the ESS in case the device is already associated and an association with * a different BSS is desired. @@ -2373,6 +2397,9 @@ enum nl80211_commands { * the allowed channel bandwidth configurations. (u8 attribute) * Defined by IEEE P802.11ay/D4.0 section 9.4.2.251, Table 13. * + * @NL80211_ATTR_VLAN_ID: VLAN ID (1..4094) for the station and VLAN group key + * (u16). + * * @NUM_NL80211_ATTR: total number of nl80211_attrs available * @NL80211_ATTR_MAX: highest attribute number currently defined * @__NL80211_ATTR_AFTER_LAST: internal use @@ -2835,6 +2862,8 @@ enum nl80211_attrs { NL80211_ATTR_WIPHY_EDMG_CHANNELS, NL80211_ATTR_WIPHY_EDMG_BW_CONFIG, + NL80211_ATTR_VLAN_ID, + /* add attributes here, update the policy in nl80211.c */ __NL80211_ATTR_AFTER_LAST, @@ -5484,6 +5513,14 @@ enum nl80211_feature_flags { * @NL80211_EXT_FEATURE_SAE_OFFLOAD: Device wants to do SAE authentication in * station mode (SAE password is passed as part of the connect command). * + * @NL80211_EXT_FEATURE_VLAN_OFFLOAD: The driver supports a single netdev + * with VLAN tagged frames and separate VLAN-specific netdevs added using + * vconfig similarly to the Ethernet case. + * + * @NL80211_EXT_FEATURE_AQL: The driver supports the Airtime Queue Limit (AQL) + * feature, which prevents bufferbloat by using the expected transmission + * time to limit the amount of data buffered in the hardware. + * * @NUM_NL80211_EXT_FEATURES: number of extended features. * @MAX_NL80211_EXT_FEATURES: highest extended feature index. */ @@ -5529,6 +5566,8 @@ enum nl80211_ext_feature_index { NL80211_EXT_FEATURE_EXT_KEY_ID, NL80211_EXT_FEATURE_STA_TX_PWR, NL80211_EXT_FEATURE_SAE_OFFLOAD, + NL80211_EXT_FEATURE_VLAN_OFFLOAD, + NL80211_EXT_FEATURE_AQL, /* add new features before the definition below */ NUM_NL80211_EXT_FEATURES, -- 2.24.1