From nobody Sun Oct 5 19:32:54 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cfsxk33cnz6BVf4; Sun, 05 Oct 2025 19:32:58 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cfsxk2GDJz3lwc; Sun, 05 Oct 2025 19:32:58 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759692778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=isXAMm6IWuAPXy5OjqLU3MsFRaB/0l+K+ez3nu2TJhA=; b=Nij6Imn+ZUwMSIM2L0W8LMUXlriZ+mfzI3wq8bzCNhPm/0W2ytvlSwaPiguFRr3UT1A+1z BJFjLEcC+4ugCPsYbw4dK4tB9ghEm1m51Ro+BRWjl8gfAII+hPpm5kZTrYhlNcYJbAB8py oI1W3igX53Jg7M6S2wRsxjyDJM48NacT7ZEGFJiBSfX74E/dHVDmacJGukGPSR8FqnmWbm 6OxnXtYsdEflQhbazvIYX32cN2WRtbBze2m3PAZATXC+0BZ+PEMRNZ4o8fnkUhKguf/fe0 vWejGGhl4JFu9mcPsOLWlQ/kOGk0VDv/IoXpsYIy/tfzfg0Mpa8lvYfdRsFKig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759692778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=isXAMm6IWuAPXy5OjqLU3MsFRaB/0l+K+ez3nu2TJhA=; b=yqdBafGdgGrm6lLyDKKZsbWH4SbY/BAd/mi0QJ0lv20cKV79W1wughbGKx8EFx1DjCMMOT mO/gmk8FblX/SI94XVwlIzeXIr9iN3jDx9oBs4mgZCbpSMtzoYNsunvHV2DnveY2gj26tQ XTtFwxZCHiC6sH8d1uNISwgT5AaX+xn4pBUt+iOriRjuD/KxRKRjW0oR5UMI+yObc0HU4k YWSw3BBiVxU+Uy53xt1JFT/PGehvmhiXfRYqWaKNa/kWRGJZjBtJWP9PMGMAcj9Ztz0+Ik WopCZ8lzRpAnaIZv9v8nnJjUYFFzcnEXx8TKOhWCMl6fN/ToJFILRSxXkI3U7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759692778; a=rsa-sha256; cv=none; b=Xn75hijOWIqTFVQdv49AyEzMoPDHtSZ/YwWl9fexFr7IgRgTSoxhXodHCZgEEg1t+JzbTo EfMHxiEogQ1ec93rDw4ZbTDCMQmcVt7hgNJzywAVL4Yz1i+tWidh4rtFUJ3QJC27MSyPOJ CgpkbTfY3qrE3IDHA8ZQRtiz6LDco0m05a8ThcdTWdsdCzuHNuUpWwgH2p/WVh90OzepYE +g6lxHGS/n7pWMMBTuTI6DADR/Ww1EC0NiEtRdbJZbHS9neqDUAf9OffDNe2K6tEleX6Hw Cm4fiUoBIhMbvGSp+cRrFLp8Z0CwCe79pdgl2s3q9VSQ4oF1iaEfJscAYFfrSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E6" (verified OK)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4cfsxk0kTqz9Z8; Sun, 05 Oct 2025 19:32:58 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id 5D99AA64805; Sun, 05 Oct 2025 19:32:46 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 358F82D029E6; Sun, 5 Oct 2025 19:32:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id oHS2sO8Lk_66; Sun, 5 Oct 2025 19:32:55 +0000 (UTC) Received: from nv.t4-02.sbone.de (nv.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 125C22D029D8; Sun, 5 Oct 2025 19:32:55 +0000 (UTC) Date: Sun, 5 Oct 2025 19:32:54 +0000 (UTC) From: "Bjoern A. Zeeb" To: Andriy Gapon cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 84e1eb50dd95 - main - net80211/regdomain: try to sort out TW In-Reply-To: <03504952-1691-447c-a502-1758c6792efe@FreeBSD.org> Message-ID: References: <202504121651.53CGpnEM060389@gitrepo.freebsd.org> <03504952-1691-447c-a502-1758c6792efe@FreeBSD.org> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Sun, 5 Oct 2025, Andriy Gapon wrote: > On 12/04/2025 19:51, Bjoern A. Zeeb wrote: >> The branch main has been updated by bz: >> >> URL: >> https://cgit.FreeBSD.org/src/commit/?id=84e1eb50dd9529b234e568ccb6f6c37f897688dc >> >> commit 84e1eb50dd9529b234e568ccb6f6c37f897688dc >> Author: Bjoern A. Zeeb >> AuthorDate: 2025-04-11 13:12:41 +0000 >> Commit: Bjoern A. Zeeb >> CommitDate: 2025-04-12 16:49:39 +0000 >> >> net80211/regdomain: try to sort out TW >> Try to help people in TW to get onto 11ac as well by adding the >> missing >> entries to regdomain.xml. Use at your own risk. >> regdomain.xml is unmaintanable in the modern world with too many >> tiny >> difference between countries. We'll need a different way to generate >> this or a different representation long term. >> Sponsored by: The FreeBSD Foundation >> Reported by: lwhsu >> Tested by: lwhsu >> MFC after: 3 days >> Reviewed by: lwhsu, adrian >> Differential Revision: https://reviews.freebsd.org/D49776 >> --- >> lib/lib80211/regdomain.xml | 254 >> ++++++++++++++++++++++++++++++++++++++++++++- >> 1 file changed, 253 insertions(+), 1 deletion(-) >> >> diff --git a/lib/lib80211/regdomain.xml b/lib/lib80211/regdomain.xml >> index 557af0349cb0..9116e54c31cf 100644 >> --- a/lib/lib80211/regdomain.xml >> +++ b/lib/lib80211/regdomain.xml >> @@ -1187,6 +1187,202 @@ >> >> >> + >> + TAIWAN > > It seems that all other domains have sku element. > Looks like taiwan gets an implicit sku of zero. > Is that intended? > > FWIW, those sku numbers look quite magic. > I have no idea where they come from. My limited understanding is that the SKUs were straight out of Atheros land and in general would only be usable for one product a time. There is very little help of them in regdomain.xml as the only place the information makes sense is somewhere in the driver which needs to know which SKU at which time was mapped to which regulatory setting. We may have to provide lots more of regulartory settings, especially for JAPAN (50+ in theory now), in order to allow a proper mapping but we are far away from this currently. If you look through sys/contrib/dev/athk/reg* you can get a gimplse of what is involved. I am sure Adrian can fill you in better than I there and you may find a posting or two about this topic on the wireless list archives. There's also other bits like the mapping of country to regdomain which is tricky to fill and yet stay minimalistic. At this point I would rather have a complete plain set of all countries in the current state updated and semi-proper than the full combination of all current and historic versions (not saying we shouldn't [re-]add them later) but we need to start somewhere and likely the first step is simplification. /bz -- Bjoern A. Zeeb r15:7