]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.14.60/ath-add-regulatory-mapping-for-fcc3_etsic.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 4.14.60 / ath-add-regulatory-mapping-for-fcc3_etsic.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:30 +0300
4 Subject: ath: Add regulatory mapping for FCC3_ETSIC
5
6 From: Sven Eckelmann <sven.eckelmann@openmesh.com>
7
8 [ Upstream commit 01fb2994a98dc72c8818c274f7b5983d5dd885c7 ]
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: ETSI
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 @@ -35,6 +35,7 @@ enum EnumRd {
33 FRANCE_RES = 0x31,
34 FCC3_FCCA = 0x3A,
35 FCC3_WORLD = 0x3B,
36 + FCC3_ETSIC = 0x3F,
37
38 ETSI1_WORLD = 0x37,
39 ETSI3_ETSIA = 0x32,
40 @@ -168,6 +169,7 @@ static struct reg_dmn_pair_mapping regDo
41 {FCC2_ETSIC, CTL_FCC, CTL_ETSI},
42 {FCC3_FCCA, CTL_FCC, CTL_FCC},
43 {FCC3_WORLD, CTL_FCC, CTL_ETSI},
44 + {FCC3_ETSIC, CTL_FCC, CTL_ETSI},
45 {FCC4_FCCA, CTL_FCC, CTL_FCC},
46 {FCC5_FCCA, CTL_FCC, CTL_FCC},
47 {FCC6_FCCA, CTL_FCC, CTL_FCC},