3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-02-20 03:10:40 +01:00

band: add "GB" as a valid alpha2 code

The "UK" alpha2 code is not the official code for the United Kingdom
but is a "reserved" code for compatibility. The official alpha2 is
"GB" which is being added to the EU list. This fixes issues parsing
neighbor reports, for example:

src/station.c:parse_neighbor_report() Neighbor report received for xx:xx:xx:xx:xx:xx: ch 136 (oper class 3), MD not set
Failed to find band with country string 'GB 32' and oper class 3, trying fallback
src/station.c:station_add_neighbor_report_freqs() Ignored: unsupported oper class
This commit is contained in:
James Prestwood 2024-10-08 07:47:12 -07:00 committed by Denis Kenzior
parent 1a554a300d
commit c459dc75c0

View File

@ -1426,7 +1426,7 @@ static const char *const oper_class_eu_codes[] = {
"AL", "AM", "AT", "AZ", "BA", "BE", "BG", "BY", "CH", "CY", "CZ", "DE",
"DK", "EE", "EL", "ES", "FI", "FR", "GE", "HR", "HU", "IE", "IS", "IT",
"LI", "LT", "LU", "LV", "MD", "ME", "MK", "MT", "NL", "NO", "PL", "PT",
"RO", "RS", "RU", "SE", "SI", "SK", "TR", "UA", "UK"
"RO", "RS", "RU", "SE", "SI", "SK", "TR", "UA", "UK", "GB"
};
/* Annex E, table E-1 */