From patchwork Thu Mar 26 13:57:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shay Bar X-Patchwork-Id: 1262002 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=celeno.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=YDqTPa4t; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48p65C1mJxz9sSY for ; Fri, 27 Mar 2020 00:58:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=rJ7M5d53G9QAp4mp4WMkxw5r72o+QQ76MTEG0LnTBZQ=; b=YDq TPa4tn0o8MSTL7waavOoyGqsjfyPOb4kyH9m5cjzXEuePdswhYv9pnikipB+FlzKuhuekIwbiYvWz qhL4oLsatD07nN7bcZ6z6SQgiYINp5tMPeY6jNsU3KwXTyAefBUfltH2wcZdbGTwTe4I1J0JUXa9K UINjYB6vNRhOdIZILI3gqZ47l/Y6aT48q3zeQKMPh1u9KgdcE7TH1ZcTew0+aLmLLg9Gr6wzqUjgm o3Y5g54JuWk71wisOnq0rwImS+1LHpo7SyiAHyu9eJn+M9cFwkVYtxIwbNx1FnN96UGLitYutO83z tsy7ehreScANhUHiAndK/JMzPHqJTQQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHT17-0006cl-Ig; Thu, 26 Mar 2020 13:57:53 +0000 Received: from mail-wm1-f65.google.com ([209.85.128.65]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHT13-0006cJ-9T for hostap@lists.infradead.org; Thu, 26 Mar 2020 13:57:51 +0000 Received: by mail-wm1-f65.google.com with SMTP id z18so6575674wmk.2 for ; Thu, 26 Mar 2020 06:57:48 -0700 (PDT) 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; bh=y1dZA78QsVEHa9QnnsqseHgA2MYjJ2Mc3qGGFFBBKJA=; b=tV/4WsrxLWryk6dtp+3/6UHQu5pyWBWBrfdwgUB1cCXaCnPpcl0FsO3NP0lOyeOlzO wdzbXz7Dj+z2iN27ItEMFdaQhh8tZlDgWIORzDDvrnq+Nx2KfQE89hFx2SvMktVrCoFq f3h1zKHFabQoT8xAv55l41Er06CErV/+/p8aN0VCZR9bnSLkZzCsnttYAZqhOYl0xcFv lFHJq0eTU5AY+uDh4Dt+3DyI/57aSxdODfWyivL8cuaSx71lejrgV1Ylaf/fkjc78qg4 pJYRfRviqdwR+lRxkV4gpTRpz1EPP2/gSCgNU3QPMfaaVvqD29p4rOfMoYN2bI6XMLiX +Fsg== X-Gm-Message-State: ANhLgQ3cxpRvuBzsBsRBwcO9TMEf7/7ZX3HxfoP/PJJJtPvm9s1+dGPV Fx9U5DxLcj6MAa17PJNY9vND4aCm X-Google-Smtp-Source: ADFU+vuX5HPvHkwnMrMxtn/PBFVxcgPQLt1w7Cfk60zXUSAjpvy7iBTWZA1TEwE+pfNp7m1CFL8mKg== X-Received: by 2002:a7b:c8d0:: with SMTP id f16mr119675wml.50.1585231066022; Thu, 26 Mar 2020 06:57:46 -0700 (PDT) Received: from localhost.localdomain ([87.70.19.130]) by smtp.gmail.com with ESMTPSA id f14sm3678662wmb.3.2020.03.26.06.57.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 06:57:43 -0700 (PDT) From: Shay Bar To: hostap@lists.infradead.org Subject: [PATCH] Add Extended NSS BW Support Date: Thu, 26 Mar 2020 15:57:37 +0200 Message-Id: <20200326135737.26351-1-shay.bar@celeno.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200326_065749_556510_9F4028D2 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.65 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.65 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [shaybar84[at]gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [shaybar84[at]gmail.com] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: shay.bar@celeno.com, eliav.farber@celeno.com MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Based on IEEE P802.11-REVmdTM/D3.0, October 2019 section 9.4.2.157.2 VHT Capabilities Information field Signed-off-by: Eliav Farber Signed-off-by: Shay Bar --- hostapd/config_file.c | 2 ++ src/common/ieee802_11_defs.h | 1 + 2 files changed, 3 insertions(+) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index bdae3be79..72eaaa03e 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -1287,6 +1287,8 @@ static int hostapd_config_vht_capab(struct hostapd_config *conf, conf->vht_capab |= VHT_CAP_RX_ANTENNA_PATTERN; if (os_strstr(capab, "[TX-ANTENNA-PATTERN]")) conf->vht_capab |= VHT_CAP_TX_ANTENNA_PATTERN; + if (os_strstr(capab, "[EXT-NSS-BW]")) + conf->vht_capab |= VHT_CAP_EXT_NSS_BW; return 0; } #endif /* CONFIG_IEEE80211AC */ diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h index 7c51574b5..63f388949 100644 --- a/src/common/ieee802_11_defs.h +++ b/src/common/ieee802_11_defs.h @@ -1280,6 +1280,7 @@ struct ieee80211_ampe_ie { #define VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB ((u32) BIT(26) | BIT(27)) #define VHT_CAP_RX_ANTENNA_PATTERN ((u32) BIT(28)) #define VHT_CAP_TX_ANTENNA_PATTERN ((u32) BIT(29)) +#define VHT_CAP_EXT_NSS_BW ((u32) BIT(30)) #define VHT_OPMODE_CHANNEL_WIDTH_MASK ((u8) BIT(0) | BIT(1)) #define VHT_OPMODE_CHANNEL_RxNSS_MASK ((u8) BIT(4) | BIT(5) | \