]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.14.60/ath-add-regulatory-mapping-for-apl2_fcca.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 4.14.60 / ath-add-regulatory-mapping-for-apl2_fcca.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:11:05 +0300
4 Subject: ath: Add regulatory mapping for APL2_FCCA
5
6 From: Sven Eckelmann <sven.eckelmann@openmesh.com>
7
8 [ Upstream commit 4f183687e3fad3ce0e06e38976cad81bc4541990 ]
9
10 The regdomain code is used to select the correct the correct conformance
11 test limits (CTL) for a country. If the regdomain code isn't available and
12 it is still programmed in the EEPROM then it will cause an error and stop
13 the initialization with:
14
15 Invalid EEPROM contents
16
17 The current CTL mappings for this regdomain code 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_common.h | 2 ++
28 1 file changed, 2 insertions(+)
29
30 --- a/drivers/net/wireless/ath/regd_common.h
31 +++ b/drivers/net/wireless/ath/regd_common.h
32 @@ -61,6 +61,7 @@ enum EnumRd {
33 MKK1_MKKA1 = 0x4A,
34 MKK1_MKKA2 = 0x4B,
35 MKK1_MKKC = 0x4C,
36 + APL2_FCCA = 0x4D,
37
38 APL3_FCCA = 0x50,
39 APL1_WORLD = 0x52,
40 @@ -193,6 +194,7 @@ static struct reg_dmn_pair_mapping regDo
41 {FCC1_FCCA, CTL_FCC, CTL_FCC},
42 {APL1_WORLD, CTL_FCC, CTL_ETSI},
43 {APL2_WORLD, CTL_FCC, CTL_ETSI},
44 + {APL2_FCCA, CTL_FCC, CTL_FCC},
45 {APL3_WORLD, CTL_FCC, CTL_ETSI},
46 {APL4_WORLD, CTL_FCC, CTL_ETSI},
47 {APL5_WORLD, CTL_FCC, CTL_ETSI},