]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.14.60/ath-add-regulatory-mapping-for-bahamas.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 4.14.60 / ath-add-regulatory-mapping-for-bahamas.patch
CommitLineData
a65d4bac
GKH
1From foo@baz Sat Jul 28 10:25:26 CEST 2018
2From: Sven Eckelmann <sven.eckelmann@openmesh.com>
3Date: Wed, 23 May 2018 11:09:53 +0300
4Subject: ath: Add regulatory mapping for Bahamas
5
6From: Sven Eckelmann <sven.eckelmann@openmesh.com>
7
8[ Upstream commit 699e2302c286a14afe7b7394151ce6c4e1790cc1 ]
9
10The country code is used by the ath to detect the ISO 3166-1 alpha-2 name
11and to select the correct conformance test limits (CTL) for a country. If
12the country isn't available and it is still programmed in the EEPROM then
13it will cause an error and stop the initialization with:
14
15 Invalid EEPROM contents
16
17The current CTL mappings for this country are:
18
19* 2.4GHz: ETSI
20* 5GHz: FCC
21
22Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
23Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
24Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
25Signed-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@@ -68,6 +68,7 @@ enum CountryCode {
34 CTRY_AUSTRALIA = 36,
35 CTRY_AUSTRIA = 40,
36 CTRY_AZERBAIJAN = 31,
37+ CTRY_BAHAMAS = 44,
38 CTRY_BAHRAIN = 48,
39 CTRY_BANGLADESH = 50,
40 CTRY_BARBADOS = 52,
41--- a/drivers/net/wireless/ath/regd_common.h
42+++ b/drivers/net/wireless/ath/regd_common.h
43@@ -306,6 +306,7 @@ static struct country_code_to_enum_rd al
44 {CTRY_AUSTRALIA2, FCC6_WORLD, "AU"},
45 {CTRY_AUSTRIA, ETSI1_WORLD, "AT"},
46 {CTRY_AZERBAIJAN, ETSI4_WORLD, "AZ"},
47+ {CTRY_BAHAMAS, FCC3_WORLD, "BS"},
48 {CTRY_BAHRAIN, APL6_WORLD, "BH"},
49 {CTRY_BANGLADESH, NULL1_WORLD, "BD"},
50 {CTRY_BARBADOS, FCC2_WORLD, "BB"},