Page MenuHomeFreeBSD

Updating ISO 3166 list of countries in ieee80211_regdomain.h
Needs ReviewPublic

Authored by farhan_farhan.codes on May 6 2025, 2:40 AM.
Referenced Files
F120346799: D50188.diff
Tue, Jun 17, 6:02 AM
Unknown Object (File)
Fri, Jun 6, 4:36 PM
Unknown Object (File)
May 18 2025, 2:14 AM
Unknown Object (File)
May 8 2025, 7:37 AM

Details

Reviewers
adrian
Summary

Two changes:

A) The current URL has been dead since at least 2014 based on the Wayback Machine.
B) There are a lot of missing countries as the ISO 3166 standard has updated.

It seems that when ISOCountryCode was created 18 years ago, some countries were meant to be added and reviewed but never were.

The only country that I removed is CTRY_KOREA_ROC2, which is not present in the ISO standard. It is not referenced anywhere in the src tree except sys/contrib/dev/athk/regd.h (Linux driver).

Test Plan

Compiles.

The only risk that I see is removing CTRY_KOREA_ROC2. The only reference in the src tree is sys/contrib/dev/athk/regd.h, a Linux driver, which probably should be updated anyways.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

FreeBSD uses a list derived from ISO 3166 [1], which is at src/share/misc/iso3166. It would be nice if we can have this enum generated from that list so we have a single source of truth.

[1] https://www.freebsd.org/internal/i18n/

FreeBSD uses a list derived from ISO 3166 [1], which is at src/share/misc/iso3166. It would be nice if we can have this enum generated from that list so we have a single source of truth.

However it is done, a single source of truth is optimal.
What other sources use ISO 3166?

Changed Taiwan's from "Taiwan, Province of China" back to "Taiwan".

sys/net80211/ieee80211_regdomain.h
258–260

I can change the comment as needed per FreeBSD policy, I was simply updating according to the ISO terminology.

Hi,
Checking if there are any updates necessary to merge this?