]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.14.60/ath-add-regulatory-mapping-for-bermuda.patch
fix up queue-5.15/mm-fix-race-between-__split_huge_pmd_locked-and-gup-.patch
[thirdparty/kernel/stable-queue.git] / releases / 4.14.60 / ath-add-regulatory-mapping-for-bermuda.patch
1 From foo@baz Sat Jul 28 10:25:26 CEST 2018
2 From: Sven Eckelmann <sven.eckelmann@openmesh.com>
3 Date: Wed, 23 May 2018 11:09:59 +0300
4 Subject: ath: Add regulatory mapping for Bermuda
5
6 From: Sven Eckelmann <sven.eckelmann@openmesh.com>
7
8 [ Upstream commit 9c790f2d234f65697e3b0948adbfdf36dbe63dd7 ]
9
10 The country code is used by the ath to detect the ISO 3166-1 alpha-2 name
11 and to select the correct conformance test limits (CTL) for a country. If
12 the country isn't available and it is still programmed in the EEPROM then
13 it will cause an error and stop the initialization with:
14
15 Invalid EEPROM contents
16
17 The current CTL mappings for this country are:
18
19 * 2.4GHz: FCC
20 * 5GHz: FCC
21
22 Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
23 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
24 Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
25 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 ---
27 drivers/net/wireless/ath/regd.h | 1 +
28 drivers/net/wireless/ath/regd_common.h | 1 +
29 2 files changed, 2 insertions(+)
30
31 --- a/drivers/net/wireless/ath/regd.h
32 +++ b/drivers/net/wireless/ath/regd.h
33 @@ -74,6 +74,7 @@ enum CountryCode {
34 CTRY_BELARUS = 112,
35 CTRY_BELGIUM = 56,
36 CTRY_BELIZE = 84,
37 + CTRY_BERMUDA = 60,
38 CTRY_BOLIVIA = 68,
39 CTRY_BOSNIA_HERZ = 70,
40 CTRY_BRAZIL = 76,
41 --- a/drivers/net/wireless/ath/regd_common.h
42 +++ b/drivers/net/wireless/ath/regd_common.h
43 @@ -313,6 +313,7 @@ static struct country_code_to_enum_rd al
44 {CTRY_BELGIUM, ETSI1_WORLD, "BE"},
45 {CTRY_BELGIUM2, ETSI4_WORLD, "BL"},
46 {CTRY_BELIZE, APL1_ETSIC, "BZ"},
47 + {CTRY_BERMUDA, FCC3_FCCA, "BM"},
48 {CTRY_BOLIVIA, APL1_ETSIC, "BO"},
49 {CTRY_BOSNIA_HERZ, ETSI1_WORLD, "BA"},
50 {CTRY_BRAZIL, FCC3_WORLD, "BR"},