Received: by 2002:a17:90a:b81:0:0:0:0 with SMTP id 1csp1008562pjr; Fri, 30 Aug 2019 11:09:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0dP1w+3F2VpA6fJKqFynovPffZ1Tb6lHxMVeKBuUu3Ac2QXZhPuhOudgIb2yvaVE+k8RL X-Received: by 2002:a62:6801:: with SMTP id d1mr19286304pfc.117.1567188559520; Fri, 30 Aug 2019 11:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567188559; cv=none; d=google.com; s=arc-20160816; b=U7yH5TXq/c/FHg3ou3fzcfQK0NGk5tQsqeG/yUGrCOogaeubfKacXUdeBnu6rCbpN5 nx6kNRZPR2rp69NEZcxBYIBmRHzrKOfmn9oP6dFLUvEY0oveuagaHrBO/vdWw25HxH1V vO0aSSwh1S5q4i+ylxdJMaRcCzf+SBsn8K1cYwmR1Q9l8wxU9XGXnXXMyR3DPezPLtyw ltjx4Uchzit1eUgOXCtgXhpKQ34Bz4byickM+PAqY02f4O+Z84RWXwvwjTdvVVIq5aSe 53yuWZ0rVWMt5ZFXSgOawNyBIyv6XI+vJlkQnLaBeO8aJVNTX+FcI9UYk/Qn/vnx5Qif HEbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=U8WMAgK8O7uz7hMP98hMjmgvyjJbLZUBYToNg+bjQ/o=; b=ikkEU+LTQi+6EgOq+bWVldQqhMCEFipP0XQMNx/K62vH5/YUBYNZN0IebWkbSVchTl UKnrGJD1JDJPckzodTkLXbTmj13ASElBx2swxVCgyIN9lURBxWhbJyQzJillMTbYtJRx rLWuIBB0PVdJT2WT++GLtYGElhkTNnTGutNf275Kws3Cw3zaxkiArh8PATOzYC7bZRKK LXyT9r2CqqJ8xXZ+ihMqEj/Kt5H3wx4Fb0cAY0/0AsoGVgxKHkbmGrBmJqhmhNpKNeQt e1KiSylXK5vArwIHbjV8uEtHuEPwvuXdUg0cCawaIuUsC0oedPcq/BfFTdlKX7y6B2m+ NajA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=iveKN1UU; dkim=pass header.i=@codeaurora.org header.s=default header.b=iveKN1UU; 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 l71si4848474pgd.314.2019.08.30.11.09.04; Fri, 30 Aug 2019 11:09:19 -0700 (PDT) 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; dkim=pass header.i=@codeaurora.org header.s=default header.b=iveKN1UU; dkim=pass header.i=@codeaurora.org header.s=default header.b=iveKN1UU; 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 S1728067AbfH3SIf (ORCPT + 99 others); Fri, 30 Aug 2019 14:08:35 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35812 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727904AbfH3SIf (ORCPT ); Fri, 30 Aug 2019 14:08:35 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A02556020A; Fri, 30 Aug 2019 18:08:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1567188514; bh=1pKFuUQE5xzl4UuFEP6ZvXvrKsLZzRjVK2Emp7wjFZs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iveKN1UUdKkyNSmSK9/CWp1EyePKngZ5Yn1/Q8ovekkO81F1MTc1hwTBefu9EfDZN 59lS5lWYWsONND5LR9yPtiecNOpmysv+47Y4++HZVYRlyZWtx+y2Yc0wK7MOUWSULF 8w2zPAQX3DCak+TrtcRz2ZhnKxVcpMrXjSCtrwl8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 285626014B; Fri, 30 Aug 2019 18:08:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1567188514; bh=1pKFuUQE5xzl4UuFEP6ZvXvrKsLZzRjVK2Emp7wjFZs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iveKN1UUdKkyNSmSK9/CWp1EyePKngZ5Yn1/Q8ovekkO81F1MTc1hwTBefu9EfDZN 59lS5lWYWsONND5LR9yPtiecNOpmysv+47Y4++HZVYRlyZWtx+y2Yc0wK7MOUWSULF 8w2zPAQX3DCak+TrtcRz2ZhnKxVcpMrXjSCtrwl8= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 30 Aug 2019 11:08:34 -0700 From: asinghal@codeaurora.org To: Arend Van Spriel Cc: johannes@sipsolutions.net, jouni@codeaurora.org, linux-wireless@vger.kernel.org, jjohnson@codeaurora.org, rmanohar@codeaurora.org Subject: Re: [PATCH] cfg80211: Convert 6 GHz channel frequency to channel number In-Reply-To: References: <1567117290-19295-1-git-send-email-asinghal@codeaurora.org> <544cab9b-8914-370d-c8a9-407ce88f6f32@broadcom.com> Message-ID: X-Sender: asinghal@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Correction in typo below: On 2019-08-30 11:03, asinghal@codeaurora.org wrote: > On 2019-08-30 03:45, Arend Van Spriel wrote: >> On 8/30/2019 12:21 AM, Amar Singhal wrote: >>> Enhance function ieee80211_frequency_to_channel by adding 6 GHz >>> channels. >> >> This look very similar to what I submitted earlier: >> >> https://patchwork.kernel.org/patch/11073197/ >> >> Regards, >> Arend > - else if (freq <= 45000) /* DMG band lower limit */ > + else if (freq < 5940) > return (freq - 5000) / 5; > + else if (freq <= 45000) /* DMG band lower limit */ > + /* see 802.11ax D4.1 27.3.22.2 */ > + return (freq - 5940) / 5; > > hi Arend, > I see a small issue in your patch above; for frequency 5940, > the channel number returned would be 0 which is an invalid channel. I > guess 6 GHz center frequency numbers begin with 5945. > > rgds, > Amar