Date: Sun, 5 Oct 2025 19:32:54 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: Andriy Gapon <avg@FreeBSD.org> 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 Message-ID: <pr937763-9722-6srr-r3qr-23993qq29485@SerrOFQ.bet> In-Reply-To: <03504952-1691-447c-a502-1758c6792efe@FreeBSD.org> References: <202504121651.53CGpnEM060389@gitrepo.freebsd.org> <03504952-1691-447c-a502-1758c6792efe@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <bz@FreeBSD.org> >> AuthorDate: 2025-04-11 13:12:41 +0000 >> Commit: Bjoern A. Zeeb <bz@FreeBSD.org> >> 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 @@ >> </netband> >> </rd> >> +<rd id="taiwan"> >> + <name>TAIWAN</name> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?pr937763-9722-6srr-r3qr-23993qq29485>