Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5958767rwb; Wed, 21 Sep 2022 15:16:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4eLuwIwOR6rxqp17BtSwQ9N/0wMmSp+PIeONzeGFzOPfV5GTLM2WFFuE5k6Dgr+FmuAFZa X-Received: by 2002:a17:907:16a5:b0:77c:e0f0:1f25 with SMTP id hc37-20020a17090716a500b0077ce0f01f25mr323245ejc.217.1663798595678; Wed, 21 Sep 2022 15:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663798595; cv=none; d=google.com; s=arc-20160816; b=CbRVMSNpZgUctLbXfQL7RVz0SfEzRj3jHsx0yn042t/bHEsolPBAF6UHrux8VsO+L/ 0jJSi2sbD3bumLV1hEr9rG8uh6pXsPSYyjLPlh3rec6H9f2WZ9dXExBh9Pt8XRwWLXhx 0fcpU64VkmxYIqq3MywQx85GvnRTOXToS/iUPXMMovrNAef0dyp2dxUZ12yEh/EqxuEb aZU+UpKdLxLkdNn+s7IAn4Cw+ip4UJcYvIiaTGVFeA91mcKpMhswOasnvLTBPo8JwMML wmlzzyPI21sdrkbJOPNdtViGdobAx5TpDRe1o4GGI7ZRVeCehaaI7BFTEihItVhNyrlp H5og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=S4N2t14LaO9r3kjmjtHNWAAQ7SKHk2zZy0Milsgj27g=; b=ckjRXJyQoz92Q1o1yJsiZXvIuyrb4Px51UPIchxDesCOg5eDkGegOUWYPuHQddyFyv 9PzLcaEQTxNyVx+/LP6N92ceOgOIIOkflJulhzOLjNNjXeGJFkadY99m9FdHjQOUDah6 zuljHHQbrWfWLU3vsBLCR0N/+fy5ExvpJOPPRGj/negZJGbRjhsrRY+2PfetCOBE7otz VksLBHOmqrQ+PkMix308/9jkpZR4lYRd9aHS7uMxGxL2lr+jG2x0U7iNlXA9EpeHxIkf K6Phg9S+4dLhSqxEkHIEmnF03O5PeTDT6kvojmgwFN2LxoPfMk/53sYqFG9Bz0JIU3ZV +HNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@morsemicro-com.20210112.gappssmtp.com header.s=20210112 header.b=d3tpnH2K; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc40-20020a17090716a800b0077fc4c7919dsi3283458ejc.528.2022.09.21.15.16.14; Wed, 21 Sep 2022 15:16:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@morsemicro-com.20210112.gappssmtp.com header.s=20210112 header.b=d3tpnH2K; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231191AbiIUWLM (ORCPT + 63 others); Wed, 21 Sep 2022 18:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231154AbiIUWLI (ORCPT ); Wed, 21 Sep 2022 18:11:08 -0400 Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F504A7AA1 for ; Wed, 21 Sep 2022 15:11:03 -0700 (PDT) Received: by mail-vs1-xe2f.google.com with SMTP id j7so8276004vsr.13 for ; Wed, 21 Sep 2022 15:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=morsemicro-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=S4N2t14LaO9r3kjmjtHNWAAQ7SKHk2zZy0Milsgj27g=; b=d3tpnH2K8GfdyI0rrWOsR4Miq6x1LDFNnh2AuhQhxjBXEqGXz1/LEtBBSdBANBDpR1 ftKTlr7uiYw0tDETT3Jo1NZSwhd2JcObaOiz48WsXK00qs0NUvhzQs4v7g4wYs6BPVk3 60SzCmgS4NFcm72IucPLVHgh830y7xkFnyYe9hCnP94lbgZFF12TFkX4fvS9yyQa2Iy5 IZY3Sh0SzX/RzBdGo0Ja+GEaptTE38u2wrr5sI7/T1MPAxlsPOom+5PiPBiKJ+yUvuef QNpZCdE3KXl5xLmRa0i5eejDhpwIfYL5kpGCMBcuAEGDBZ0diEzNK10bCT2d6Ofsujuu FmNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=S4N2t14LaO9r3kjmjtHNWAAQ7SKHk2zZy0Milsgj27g=; b=T5PvgcRYKhQM2jUuwj6XpzNklvU+VzuRTBKYSEB1yMfT22gxfaIaXMjrCmUpr2RgxE frmeEUpzfT+XMh+R9li/sJ4N4R0miaVsgIZ/McFmspQQBBtymWs7AdzZPcKG/IXisV7g jTiGhgKnfMh52YSn8KwYQs+QadWuhvfI9CLjDuYZqNKou8h/LbU1ixkJHGrbtoIgrnRo bRPejGmxZJzarVGSlRRiSIjZCxR2stHP9Dfv39zwjL71HwBFNPNRJDX/BKfNpCL1Bc2/ TOIRrcIv3sn5Hbnpv/BRqzqR4Sj+Vul/gwzNyLG3O9w+C6pKR+MqUHbl8TKz67gTjJe8 4ORw== X-Gm-Message-State: ACrzQf1OIs1Q8XgdmpV/vOfRZSNSykwuXF87Bc3nP7MBZqopsPethsJC /4Xwcot/X1blLAxZfacsCSKF0OQbFJOld3m2nSC+Gypsc8gpgA== X-Received: by 2002:a67:dc98:0:b0:398:c70f:9357 with SMTP id g24-20020a67dc98000000b00398c70f9357mr116933vsk.76.1663798261988; Wed, 21 Sep 2022 15:11:01 -0700 (PDT) MIME-Version: 1.0 References: <20220906044812.7609-1-kieran.frewen@morsemicro.com> <20220906044812.7609-2-kieran.frewen@morsemicro.com> <33a46d12583b540a921f6ce96065c9a177bd044d.camel@sipsolutions.net> In-Reply-To: <33a46d12583b540a921f6ce96065c9a177bd044d.camel@sipsolutions.net> From: Kieran Frewen Date: Thu, 22 Sep 2022 10:10:51 +1200 Message-ID: Subject: Re: [PATCH v3 01/12] cfg80211: regulatory: extend regulatory support for S1G To: Johannes Berg Cc: linux-wireless@vger.kernel.org, quic_jjohnson@quicinc.com, kernel test robot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Sep 6, 2022 at 9:36 PM Johannes Berg wrote: > > On Tue, 2022-09-06 at 16:48 +1200, Kieran Frewen wrote: > > Extend the S1G regulatory information to support all regulatory > > domains. An reg_s1g.h file is included containing structs with key > > regulatory class information. These structs were required to ensure > > the right combination of information was available to a series of > > functions which support the mapping between frequencies, bandwidths, > > and channels. > > > > Hm. Isn't this type of thing something we'd usually want to keep in the > regulatory database to be able to update it? Who says JP will always > stick to their restrictive scheme, for example. > > johannes Yes I agree that this information would be best stored in the regulatory database. Especially in respect to maintaining a single up-to-date source of knowledge. I have done a bit of investigation into what information we would require in order to maintain the same level of functionality. I think at the very least we would have to add the base frequency to what already exists in the regulatory database. By adding this we would maintain the ability to map from S1G channels to frequencies. We would, however, lose the ability to specify exact bandwidths for a certain frequency as is the current behaviour in reg_rule_to_chan_bw_flags() and would likely have to change the S1G bandwidth flags to not permit certain bandwidths on a channel, e.g. IEEE80211_CHAN_NO_2MHZ as opposed to flagging a single allowed bandwidth. I do wonder that if we do add a base frequency to the regulatory database are we straying from just maintaining information which permits or prevents operation in a regulatory domain for a specific frequency and starting to include information that the kernel is relying on for mapping from one field to another, e.g. ieee80211_channel_to_freq_khz(). Kieran