From owner-freebsd-wireless@freebsd.org Tue Jul 21 21:33:33 2020 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 81E4B3688E7 for ; Tue, 21 Jul 2020 21:33:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BBBfh3ljxz4GdX for ; Tue, 21 Jul 2020 21:33:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qv1-xf2e.google.com with SMTP id el4so111300qvb.13 for ; Tue, 21 Jul 2020 14:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VZMjHDMaz1CIgnbTOlFmKa3jraegxric+7gm0pE6dHI=; b=a6Ki6bnQ7bFk7GZyk19rPBbCQ5CN1ISvD6xw2gPC8oaHLRDndKVXFafPIASYM/2w6w xoqriPhegDCZX4A3djAUTfaEahDxpi+LAaNHOBcHNkq8SNNvEoBPeFBKHVpLzuK14e9R 5XEkHxY2jL+DTuo4nEVdEd/YMGMXFDppkgu1d/oDRbXZvRxySWti+TzGU9ldqrnhr30x uBURYI69USoh/XF0Tlf0tJirEr6QaeyTXNcVVJRCdh0xYNorig26JHzztcxuiRxnuc0T ehAa2EJefwQn8C1qG+nNqvyQ0cP4bpm3yaHE4kN1a31tlt6DC57657k9u0YqDPVyz7mZ byVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VZMjHDMaz1CIgnbTOlFmKa3jraegxric+7gm0pE6dHI=; b=W6ZoBQ2wfgzhYz2GZrbT/D/WFLrP0sAmnra+My/+/2rCHIk06hSF8ar0J6ZO2DAsAm 7zhXaW4V0hAg13n2X7jDYMNFXCSQJkRKUUlFoV3PpvrsONpiXAWE/HDmDDIWej8Nc2+s TmHT2yJ5IjLK7nYR0RD1f90+UgwfloVLiNYTlRJ87wy8JBIQSut55olG9hSmu38+6WW6 DWrYRM6FP0MGjuZd/BVjSl3XIa5rRVIxFIvLOrSUZhl7QHq1QdQgSVhB74qtBqnIMcFh Mu0Ne+BV3C/NhULJwTCRpWJGuBVD3ucDBiKtEtt+E1QfUnol8PuHhQmeCwNkQWpNRjaO MUsg== X-Gm-Message-State: AOAM530UKBlJjGe65fhPSVkQsTzVNfHU4S4HFIVBS2G3D0CczhlubTNu +K5fiqw0xU8k4qqJkDt2yaEAJ7jAbj92F0o7d2U= X-Google-Smtp-Source: ABdhPJw0urA6lbBXAZFrxQOHP3vJ6GnZAb6jLr6mI1AikY5ISQDmiNr8IEfopJj+eMf+7Vrl0kzDRPTOYNC0GaspN1c= X-Received: by 2002:a05:6214:a72:: with SMTP id ef18mr28435905qvb.166.1595367211540; Tue, 21 Jul 2020 14:33:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Tue, 21 Jul 2020 14:33:19 -0700 Message-ID: Subject: Re: regdomain.xml To: Aaron Cc: "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: 4BBBfh3ljxz4GdX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=a6Ki6bnQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::f2e as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.49 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.45)[-0.453]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.033]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2e:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2020 21:33:33 -0000 On Tue, 21 Jul 2020 at 14:31, Aaron wrote: > > >>>> What do others think? What should we do? > >>> I vote for recreating it as a CSV file. Would then be easier to work > with > >>> and easy to convert to other formats -- json/xml/... > >> Lol, if anything we'd likely use a format that we already use inside the > >> tree, so json or xml. I don't MIND xml, but I mind how it's laid out > right > >> now . It makes extending things a pain in the rear. > > Don't overlook ucl here, which can even do fancy stuff like file > > inclusion (which may or may not do object merging, based on how your > > ucl files are written) and is now used in a couple places of the tree. > > You could perhaps section off /usr/share/regdomain and do all kinds of > > fun stuff that reduces the labor involved.v > > UCL looks interesting, what level of adoption does it have? If it's > common enough ... > > A single CSV file would be a catastrophe, there are several different > sections to the regdomain.xml file, it would have to be several. JSON > or XML work, but I certainly won't be editing them manually. Likely all > programmatic through Python, perhaps later we write a shell script to > make future changes easier? > > Agree the current format is poor, will propose changes once I've dug > further into how the file is being used and what it's failing to do > currently. Still gathering information. > > Ok. Please do dig into it. Do try to treat the regdomain code as a black box - input is "what regulatory domain do we want" and the output is "a list of channels and properties of those channels that we currently program into net80211." Hopefully we don't have to change the net80211 channel API! -adrian