Message ID | 20230602221511.1237936-2-matthewmwang@chromium.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@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Fru4cVr5; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=VR+UjOHp; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QXy5N0ffPz20Wm for <incoming@patchwork.ozlabs.org>; Sat, 3 Jun 2023 08:16:23 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bLU5BzV9M0yq7CRF1tV+SGFM9pW7fUDEG9T2vOizrmA=; b=Fru4cVr5NenlmI NH/l6YSLxg5RUYH3TU5RV3GqJH5PNcnXF1a+TphSgYAIM7kHvW7SwIzOuoVHDFvfwNkMuZzwtwHVk kLb59knWzJrKaeNLEE6zTQ0d1COwyiat10ohLIdUKvZvzZZJRy0GA/N56+zUGofcyd/lfPYHWnC37 KBkU1yUikFqgzZL3ahK1WvaG/ROMq9CdmsGzzaOXiKRqHoCM1cI9hyk30LDaqZ+PO+fKxDu7hG8Ei A0RPilKBgkzZhTM6BGb5Wrauplbe/oUGnOVwFWfRVWO1U7eYgQjDL89qjST7F+GL4Ba/voIk/ER0f 4wuvnlkAuStqcHitEvrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q5D3O-0082P4-1f; Fri, 02 Jun 2023 22:15:26 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q5D3L-0082MO-07 for hostap@lists.infradead.org; Fri, 02 Jun 2023 22:15:25 +0000 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-64d5f65a2f7so1935379b3a.1 for <hostap@lists.infradead.org>; Fri, 02 Jun 2023 15:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1685744118; x=1688336118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5OuWqSPeZG5sZr1ixfAI0zLmWXAtcolReOiiHpERAqk=; b=VR+UjOHpxatMGaDHZ7jOXITa/nqg9Xfx2VlA2rGIEGCLf6s+Cd1ZZCjl1bwsk0uf7Q POW+PaUj/3fQiyUaZ8E9v7zWi5UOqnY0/2mNP0DwiP1wXrKsw1Kxg00dXJsCA7jHSDMu KeyN9ccGk8LXAj6ZkHT/wL99I+it/IN4nfykE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685744118; x=1688336118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5OuWqSPeZG5sZr1ixfAI0zLmWXAtcolReOiiHpERAqk=; b=Cb5eBJr5kZXHLETzrro1EChSG6/s6YHJ85Z1Exogr/j5tbYE6JcDnCUTDhqvOU0snb DWHNTUvPGGPyPHI2lLDxJw9KEBWsnrH/txaJ8s6dpBvYDhAKD5iTZqRqYlAWWR8IzxX/ 4mdV3A+vpT4UWqsbxzXZiMaHedJAH6HwVuX2go0tfdKdqXyN+LbrC3mIAP1IxsWwbuUm Qq6zyS/wekvBO8qSwP3nbS5HtfCqv2H7E0e8jPwQ6RgiGPOXnWuDhmksTBwqCzG2h+Ru ehNtTgiC8hOqVaD2SnR06E6f10fTtLra3HOXY3mxtS6zLt0ePq3PakUiRJYhLO0McnQD JKQg== X-Gm-Message-State: AC+VfDyh8JfLQP03uLnihJRk1xtRYRLfyYjR25Yn8gMZbMcD4MQWJ7wn yjtFdYtlDrtn5/Ud+JbBRhOWzc29dptJ6H0T7mM= X-Google-Smtp-Source: ACHHUZ5z0ua7D79ro1nkjLYW1PqGvRi1VQH1pPhtthczCpyFt5SuyMqNiKjv+MrqNdFa+5DSxMhqIQ== X-Received: by 2002:a05:6a20:144e:b0:10c:62b3:7dc4 with SMTP id a14-20020a056a20144e00b0010c62b37dc4mr10821784pzi.55.1685744118631; Fri, 02 Jun 2023 15:15:18 -0700 (PDT) Received: from matthewmwang2.mtv.corp.google.com ([2620:15c:9d:4:5a47:2855:d3e5:8d1a]) by smtp.gmail.com with ESMTPSA id i3-20020a170902c28300b001a245b49731sm1835313pld.128.2023.06.02.15.15.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 15:15:18 -0700 (PDT) From: Matthew Wang <matthewmwang@chromium.org> To: j@w1.fi Cc: hostap@lists.infradead.org, matthewmwang@chromium.org Subject: [PATCH 2/4] Fix uses_6ghz flag Date: Fri, 2 Jun 2023 15:15:09 -0700 Message-ID: <20230602221511.1237936-2-matthewmwang@chromium.org> X-Mailer: git-send-email 2.41.0.rc0.172.g3f132b7071-goog In-Reply-To: <20230602221511.1237936-1-matthewmwang@chromium.org> References: <20230602221511.1237936-1-matthewmwang@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230602_151523_071426_58E88046 X-CRM114-Status: GOOD ( 11.74 ) X-Spam-Score: -0.4 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Presence of any 6ghz channels indicates nl80211 driver 6ghz support, not non-DISABLED channels. Signed-off-by: Matthew Wang <matthewmwang@chromium.org> --- src/drivers/driver_nl80211_capa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Content analysis details: (-0.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:430 listed in] [list.dnswl.org] -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_AU Message has a valid DKIM or DK signature from author's domain -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.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 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> 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 | [1/4] Use default IEs in wpa_supplicant_trigger_scan | expand |
diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c index b904398ca32..07cd11310e6 100644 --- a/src/drivers/driver_nl80211_capa.c +++ b/src/drivers/driver_nl80211_capa.c @@ -2548,8 +2548,7 @@ static void nl80211_dump_chan_list(struct wpa_driver_nl80211_data *drv, for (j = 0; j < mode->num_channels; j++) { struct hostapd_channel_data *chan = &mode->channels[j]; - if (chan->freq >= 5925 && chan->freq <= 7125 && - !(chan->flag & HOSTAPD_CHAN_DISABLED)) + if (is_6ghz_freq(chan->freq)) drv->uses_6ghz = true; res = os_snprintf(pos, end - pos, " %d%s%s%s", chan->freq,
Presence of any 6ghz channels indicates nl80211 driver 6ghz support, not non-DISABLED channels. Signed-off-by: Matthew Wang <matthewmwang@chromium.org> --- src/drivers/driver_nl80211_capa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)