Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp975598pxa; Thu, 27 Aug 2020 23:24:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8QzW0g0vDh8KWEaEbJNXjKlo5fVJONj5YuHIuVP6/sNiYcPHJrk7jMDKgqx7ss0/iDAmL X-Received: by 2002:a05:6402:1ca6:: with SMTP id cz6mr324995edb.310.1598595879099; Thu, 27 Aug 2020 23:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598595879; cv=none; d=google.com; s=arc-20160816; b=riwFM4KMWUmQeCsaQdomQSYNNolKCPTzptkeTci/aIWY+J3PWh0MQpRReAxWuzoWm6 5r7k9FTTgZgPHEjLCPkPsMflnCTdRejGRJLoi1ktzqv3vlEFCqKD6CDZ0xo/FbEaGvf5 Q1Yncl2IidXz88Ppgs71HjGKhRRS3erM291YCg6OWBQr4Mt9QMcXM6XJprrhka/2XhlQ lrBxhGKuQXikzIgby0lF6zlOCsP9a3uFN1MbEqWhxvLcfi4Tnd8mLTHaZjNH8SMYDjzD +TkA+CibaW0ys8+wRHFVqFqdLzn5WIw6NkODV57feXGvFdSNK9OT+vten/3P6TrVx7Y5 0NCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id :user-agent:references:in-reply-to:subject:cc:to:from:date :mime-version; bh=2+46YQQC8tb7hZpdHLIxsn1rdUqH0rf9NiIdq8cUEuA=; b=SQXhh4PF3lUT6y3ukVcZ0HmingN5qpvKH+JAG7bvvNK+sxIQQOyGu6ut7qGyvSsu+P MyzyDHXKFOKWEImoyEE/06ATtyVEWdrDV/Nn3lPasnQ+Utr+WKU5qpWut9bqpFFBpf+I 3GW9gk9dXD/PtpvSbmrrt5qoIwF1gWvHnl6V2gIpTWOLZ0NML7I1Qwb/fV+laQH9BK86 cMkWtYfGVdle2LjRIdL8+xt507FoG3L9ptBGtSRvheIFgKSdw94X2AXIfxUuhmi8Vrn7 8aVNz0ess4Z22CdHHuOXAKUM4Fnf0YMNUA7IIHcYCc0mzc1OYm9OnEgkmrsVj/vSSOLw hVew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si2971248edn.42.2020.08.27.23.24.07; Thu, 27 Aug 2020 23:24:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728086AbgH1GVL (ORCPT + 99 others); Fri, 28 Aug 2020 02:21:11 -0400 Received: from mail.adapt-ip.com ([173.164.178.19]:55458 "EHLO web.adapt-ip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725849AbgH1GVL (ORCPT ); Fri, 28 Aug 2020 02:21:11 -0400 Received: from localhost (localhost [127.0.0.1]) by web.adapt-ip.com (Postfix) with ESMTP id CBC3A4EDBAB; Fri, 28 Aug 2020 06:21:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at web.adapt-ip.com Received: from web.adapt-ip.com ([127.0.0.1]) by localhost (web.adapt-ip.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yGKxvOlWykmu; Fri, 28 Aug 2020 06:21:08 +0000 (UTC) Received: from mail.ibsgaard.io (c-73-223-60-234.hsd1.ca.comcast.net [73.223.60.234]) (Authenticated sender: thomas@adapt-ip.com) by web.adapt-ip.com (Postfix) with ESMTPSA id 1ED8A4E74EB; Fri, 28 Aug 2020 06:21:07 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 27 Aug 2020 23:21:07 -0700 From: Thomas Pedersen To: Johannes Berg Cc: linux-wireless Subject: Re: [PATCH 02/22] cfg80211: regulatory: pass min. bandwidth to regulatory rule extractor In-Reply-To: <20200827223304.16155-3-thomas@adapt-ip.com> References: <20200827223304.16155-1-thomas@adapt-ip.com> <20200827223304.16155-3-thomas@adapt-ip.com> User-Agent: Roundcube Webmail/1.4.7 Message-ID: <1b52e7f240136d13f144b9d5b7744880@adapt-ip.com> X-Sender: thomas@adapt-ip.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-08-27 15:32, Thomas Pedersen wrote: > diff --git a/net/wireless/reg.c b/net/wireless/reg.c > index 35b8847a2f6d..6c130cec22c3 100644 > --- a/net/wireless/reg.c > +++ b/net/wireless/reg.c > @@ -1629,9 +1629,10 @@ __freq_reg_info(struct wiphy *wiphy, u32 > center_freq, u32 min_bw) > } > > const struct ieee80211_reg_rule *freq_reg_info(struct wiphy *wiphy, > - u32 center_freq) > + u32 center_freq, > + u32 min_bw) > { > - return __freq_reg_info(wiphy, center_freq, MHZ_TO_KHZ(20)); > + return __freq_reg_info(wiphy, center_freq, MHZ_TO_KHZ(min_bw)); > } > EXPORT_SYMBOL(freq_reg_info); Actually, it would be cleaner to keep the freq_reg_info() interface intact, then set min_bw = 1 if center_freq is in the S1G band. The call to freq_reg_info() for successively smaller bandwidths in the next patch could just call __freq_reg_info() directly. Will fix in v2. -- thomas