From owner-freebsd-wireless@freebsd.org Wed Jul 22 03:39:43 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 0D13537021E for ; Wed, 22 Jul 2020 03:39:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (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 4BBLn90nmVz4bsZ for ; Wed, 22 Jul 2020 03:39:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qk1-x72f.google.com with SMTP id l23so781020qkk.0 for ; Tue, 21 Jul 2020 20:39:40 -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=ctHYq9IbVO/LEY2Nm8t8NNLYyHRLu9SAkDeTDfjL3Wg=; b=jp+u7ytLe8Wyoslqk5j7VaRDqCgXdlOrMxA9vMIzjzQwqhDurLLHceotFvPWKY1xgS KWD8hWnX9CwdzLC1pzOC6Eb5sLN+AwYyOxFiGqrluNcUjHp+6+q6ZFkxt8uXbdyBwgon GPJnO2Tg0aa5BiufQ4w/j9ITfR3TcCvespTfQtz77EBLLeS19b+7tHFFx86ih2B7P2ap XBBqVJu9/SwfMfrC4zOA1JnwF/I+oVH94/wT3/QoUoKq2xk8406YjP86rXtIoeHbvjLY S0ZzZCNXr6U+7BIwtdpycQe9Uc9R+towIfsMEoQnG0O8UXcfCrEARW4AiwHC8e6FfQTC Q3Bg== 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=ctHYq9IbVO/LEY2Nm8t8NNLYyHRLu9SAkDeTDfjL3Wg=; b=ZzdiVK0/oKxGBQuZdVOAiMMGAFvQRrnDX/PexV0kOL6dvnWh2Zam3Jvfhd8rRkvvOB i3ZqpNuV/otlrZIsaQvQgX5hHFqcbG8TVyLZhmxLXS76vK58zX7ub6Efi/eODJSipH34 46ZLdlf5FG8JJrtdiWXPFUfyVq5EB4tuXHF820fuxsWjIjrFkQdzyi92LHEYH9NOoGqD s9KPXKeSDsTqmm+SutD4ptbKvQSidWdo90WdKR7N8i9bjsreQQI8I/6AoQEraJ5oS+8T HS2rvhVTRnt2c5Scwbv+ESyZy6c62K53sjXcKuR8E1Q/uGm7FUvf616cD1N/XxQSJ9SF CQkg== X-Gm-Message-State: AOAM533iu6XhqhmB/oCaRPzr7R92eUfVHVPen4fQJFC3P3M1Gl5YMPb2 PDjv/KcPhAx2J51XjNfaiSPKKPjq34EbzOJiw4zA3A== X-Google-Smtp-Source: ABdhPJynQU8HirBd8j+8OHZ2qf66p8Z+1MnaBkOLTCyBzDriiIfr3lMdqloLAk/t+sYzZvSN7LEXKUe6Ydr1gUR+6hg= X-Received: by 2002:a37:2d07:: with SMTP id t7mr30457089qkh.51.1595389180338; Tue, 21 Jul 2020 20:39:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Tue, 21 Jul 2020 20:39:28 -0700 Message-ID: Subject: Re: Re: regdomain.xml - Linux wireless-regdb To: Aaron Cc: freebsd-wireless X-Rspamd-Queue-Id: 4BBLn90nmVz4bsZ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=jp+u7ytL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::72f as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.53 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.04)[-1.037]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; NEURAL_HAM_LONG(-0.99)[-0.986]; NEURAL_HAM_SHORT(-0.50)[-0.503]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72f:from]; 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)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Wed, 22 Jul 2020 03:39:43 -0000 On Tue, 21 Jul 2020 at 20:36, Aaron wrote: > Still working on my mailing list etiquette ... > > On 7/21/2020 11:11 PM, Adrian Chadd wrote: > > > On Tue, 21 Jul 2020 at 20:03, Aaron > > wrote: > > > > On 7/21/2020 10:53 PM, Adrian Chadd wrote: > > > As a data source yes, but I'd /love/ ours to be more structured. > > > Parsing the wireless-regdb format is ... lol. > > > > > > > > > -a > > Fair enough. This data also has a 1:1 mapping between country and > > regulatory domain. You mentioned Atheros earlier, is this 1:many > > country:rd mapping necessary or just an artifact of how they coded > > things? > > > > > > I mean, both are true. For atheros hardware we do that already in the > > driver; and for other NICs that need local weird channel/sku bits they > > can implement themselves. :-) > > > > > > > > -adrian > > > > _______________________________________________ > > freebsd-wireless@freebsd.org > > mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > To unsubscribe, send any mail to > > "freebsd-wireless-unsubscribe@freebsd.org > > " > > > So Atheros and the Japanese are on their own. In that case, the data > that's needed is ... what's already in the wireless-regdb file? You've > got: > * Country > * Regulatory domain name (albeit only FCC, ETSI and JP), /which isn't > actually used for anything!/ The details for each country are > stored directly, there's no referring to the regulatory domains at all. > They're used for DFS modules which need to know which DFS regulatory domain one needs. :-) > * Frequencies and channel widths. > * TX power (in db OR mW, if that needs to be normalised someone's > going to have to supply me with a reference or a formula) > As you'll discover, the challenge is that there can be multiple ways to skin the regulatory power limits felines. For we should stick to what net80211 already does; which is just tx power in 1/2 dBm increments. * Flags. Once the data's parsed we can get a complete list of these. > Right. > > Is there anything else needed? And given that each country is a > self-contained dataset, what do we need the regulatory domain name for > beyond a label? > DFS is the main consumer for now. -adrian > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org > " >