From patchwork Mon Jun 22 06:40:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pradeep Kumar Chitrapu X-Patchwork-Id: 1314612 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=2001:8b0:10b:1231::1; helo=merlin.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=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=merlin.20170209 header.b=FkjvT6Jk; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=mnjtbw5u; 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=X/QJz6JG; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 49rFCw4Nkbz9sRR for ; Tue, 23 Jun 2020 02:26:36 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=Zr6yU88dbXNu79nXfqa5beLxMKZfT8FMyumTPocGGgk=; b=FkjvT6JkMev8tBPoJEh9LbooQb LjOZT9X6LC+TVaf8pKNz0Z5ZkeqoIPg9esqvBUKf+t1xYbij+/eCf4vcl9qn5uXqDxMNFuMQ0QGwK wQVji7vYBUbHB+X/5lJwtAbNrTnRC3yRtb/oCMlELLJT/I1TgpcDlcTEAPIqJYfQlgNZpbnU+8hP7 adwRbsTPoCQKEkUh+OESG3EznuGriRILE1RcMtEtdoQg67HjgR8yL4S4yY+khX9Y2YDeDU3+4domT ADAgV9wDZ2eFsWJBLCKoRpgIOgzVVyY8oboo3MYAiRqyEUEaxuNTUqg2D0r6nBxEjbEOwozQcn9xI UYPqgbRw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnPFU-0007ck-Cs; Mon, 22 Jun 2020 16:24:44 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnLkl-0006aE-El for hostap@merlin.infradead.org; Mon, 22 Jun 2020 12:40:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=o+3h08QMnhQ9uQCEsk2FKSQE30ziMqtzMAFPbbV/+jg=; b=mnjtbw5u8bB20isnEgm1y9c74q gLvzNZ7+fY6YR7PHZSO19E5JjYMzkM8IhKpKsy6duNH2Scb/y+RY4ZK1CdGpB6GEo4CsaBsirzfsb c/i8Ky2lZcpL79ADr/9nKICPHUDOxKpD8bOfYp9p6PoFoa8cF36G/ogGWuxhuI+D+ovfLO3eo8XPy 2LUikQWWuyMcZlwqPRbs0C4P11Ox6EglinFMWS6O+8OnWFySl6zgdxGK9x1NzWbSJJqW2czScsfka TM7YzoKWyBeXVc/ZhtKImYwNRypBEduvd9WmgNTePkZWqaGpdJryT1RgG2PTHVcMV107w6+tFTc/N bv73/v7A==; Received: from mail29.static.mailgun.info ([104.130.122.29]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnG80-0000iJ-RW for hostap@lists.infradead.org; Mon, 22 Jun 2020 06:40:27 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592808022; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=o+3h08QMnhQ9uQCEsk2FKSQE30ziMqtzMAFPbbV/+jg=; b=X/QJz6JGMaZuNPXBGZPc+RyY8N0gN+z7VYs1m3zzYVM4Q3HCdprbvlRWAcDyHSS+jq7J++1E O0nJn/Gt/ijSISQPZHUeVKE9WK5aHB7GFWZbWMYsNrmdCw0QNOMylcqQC7y2G2/oL6yzALhk PVp3p464Ck3FMEsn5fD93FlSjAg= X-Mailgun-Sending-Ip: 104.130.122.29 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-n02.prod.us-west-2.postgun.com with SMTP id 5ef05254fe1db4db8908e6ef (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 22 Jun 2020 06:40:20 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CC637C433C6; Mon, 22 Jun 2020 06:40:20 +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=unavailable autolearn_force=no version=3.4.0 Received: from pradeepc2-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pradeepc) by smtp.codeaurora.org (Postfix) with ESMTPSA id 53183C433C6; Mon, 22 Jun 2020 06:40:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 53183C433C6 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=pradeepc@codeaurora.org From: Pradeep Kumar Chitrapu To: hostap@lists.infradead.org Subject: [PATCH 1/3] 6G: Fix enabling 40/80MHz bandwidth support in 6GHZ Date: Sun, 21 Jun 2020 23:40:12 -0700 Message-Id: <20200622064014.25012-1-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200622_074025_124046_AF7E69A3 X-CRM114-Status: GOOD ( 12.61 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [104.130.122.29 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [104.130.122.29 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Mailman-Approved-At: Mon, 22 Jun 2020 12:24:42 -0400 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: Pradeep Kumar Chitrapu MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Currently 40/80 MHz bandwidth setting is being rejected due to incorrect sanity check. so fix that. Fixes: d7c2c5c9 (AP: Add initial support for 6 GHz band) Signed-off-by: Pradeep Kumar Chitrapu --- src/common/hw_features_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/hw_features_common.c b/src/common/hw_features_common.c index f6c67a375037..1d9387f70b56 100644 --- a/src/common/hw_features_common.c +++ b/src/common/hw_features_common.c @@ -415,7 +415,7 @@ int hostapd_set_freq_params(struct hostapd_freq_params *data, return -1; } - if (center_idx_to_bw_6ghz(channel) != 0) { + if (center_idx_to_bw_6ghz(channel) < 0) { wpa_printf(MSG_ERROR, "Invalid control channel for 6 GHz band"); return -1;