Message ID | 1591078468-19043-4-git-send-email-rmanohar@codeaurora.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codeaurora.org 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=X1R1fN6f; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.a=rsa-sha256 header.s=smtp header.b=ZUHjE4S9; 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 49bhbw2Rqwz9sSf for <incoming@patchwork.ozlabs.org>; Tue, 2 Jun 2020 16:15:24 +1000 (AEST) 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:References: In-Reply-To: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:List-Owner; bh=Y3/+srN7TqsMz7LbL2YJPm/zGJQ+zbeRWASD8UdAQV0=; b=X1R1fN6fmyIQ2STu+r8LroaG9+ UcAekMZHzFBcjYLAiBh6Ox9qu2KzJ6t+ukFA0zHsaXolwFwEp84l3aYXSxR9+1uX8WPz1BtJLmzo1 dv9BgJemtGcGCzPUxOcN8stm+ApGfP6rV2n6Zvcu0bkpRPLbnWwUFbZ/rsxEKTQSR0mj/LZBEvKFn aDQ+P0BVJKwj+9ATNY6V5pI9/9QwkUh/pFBiJrEXQku0cCuWpUshhPe4hhfckXnJdnpCwthhQjLM/ fpW4jGPt1oP1ENYGnPLg5+MqsKAimfAp5fl+unYki3ID3m/iAwV5qxfv8+BtteCTmOBlJOAX24BPl z5w+MmSA==; 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 1jg0Cc-000190-3Y; Tue, 02 Jun 2020 06:15:10 +0000 Received: from m43-7.mailgun.net ([69.72.43.7]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jg0CD-00009r-BN for hostap@lists.infradead.org; Tue, 02 Jun 2020 06:14:46 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1591078485; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=fvznV/sp3xpYq7JOPi6/AEp2MOPDUcc+t0U897Kt8rE=; b=ZUHjE4S9qPg3/2IemGOJdcYmAXiMEleGpehL0GgR2QbsI5M2WvmR4Z0WF/P4JfIQaxveXKZ3 EdfvP0H1ZDlmLz+J6wD/6Ai8TIoSlAGrE22mX/2/elzpoT4m6vQuIPdNrgF5Es/vp+dFJqNu cLDUbQx/WeGYih+E95WxPkfx5Rc= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyJkMjNkOSIsICJob3N0YXBAbGlzdHMuaW5mcmFkZWFkLm9yZyIsICJiZTllNGEiXQ== Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n08.prod.us-east-1.postgun.com with SMTP id 5ed5ee533131442d95126509 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 02 Jun 2020 06:14:43 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 77AC4C433CB; Tue, 2 Jun 2020 06:14:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=ham autolearn_force=no version=3.4.0 Received: from rmanohar-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rmanohar) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0A03DC43391; Tue, 2 Jun 2020 06:14:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0A03DC43391 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=rmanohar@codeaurora.org From: Rajkumar Manoharan <rmanohar@codeaurora.org> To: j@w1.fi Subject: [PATCH v2 4/5] AP: Restrict Vendor VHT to 2.4 GHz only Date: Mon, 1 Jun 2020 23:14:27 -0700 Message-Id: <1591078468-19043-4-git-send-email-rmanohar@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591078468-19043-1-git-send-email-rmanohar@codeaurora.org> References: <1591078468-19043-1-git-send-email-rmanohar@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200601_231445_466256_20A00858 X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [69.72.43.7 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [69.72.43.7 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Cc: hostap@lists.infradead.org, Rajkumar Manoharan <rmanohar@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[v2,1/5] nl80211: Fetch HE 6 GHz capability from driver
|
expand
|
diff --git a/src/ap/ieee802_11_vht.c b/src/ap/ieee802_11_vht.c index f50f142dc0bb..0d68c8963f90 100644 --- a/src/ap/ieee802_11_vht.c +++ b/src/ap/ieee802_11_vht.c @@ -428,6 +428,10 @@ u8 * hostapd_eid_vendor_vht(struct hostapd_data *hapd, u8 *eid) if (!hapd->iface->current_mode) return eid; + /* Vendor VHT is applicable only to 2.4 GHz */ + if (hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) + return eid; + *pos++ = WLAN_EID_VENDOR_SPECIFIC; *pos++ = (5 + /* The Vendor OUI, type and subtype */ 2 + sizeof(struct ieee80211_vht_capabilities) +
Vendor VHT IE is used only on 2.4 GHz band. Hence restrict the usage of vendor VHT element to 2.4 GHz. This will ensure that invalid / wrong user config will not impact beacon data in other than 2.4 GHz band. Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org> --- src/ap/ieee802_11_vht.c | 4 ++++ 1 file changed, 4 insertions(+)