Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
77 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
Index: compat-wireless-2013-02-22/drivers/net/wireless/ath/regd.c | ||
=================================================================== | ||
--- compat-wireless-2013-02-22.orig/drivers/net/wireless/ath/regd.c 2013-05-11 23:32:07.134034802 +0200 | ||
+++ compat-wireless-2013-02-22/drivers/net/wireless/ath/regd.c 2013-05-11 23:33:32.031500463 +0200 | ||
@@ -52,12 +52,11 @@ | ||
#define ATH9K_5GHZ_5725_5850 REG_RULE(5725-10, 5850+10, 40, 0, 30,\ | ||
NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_IBSS) | ||
|
||
-#define ATH9K_2GHZ_ALL ATH9K_2GHZ_CH01_11, \ | ||
- ATH9K_2GHZ_CH12_13, \ | ||
- ATH9K_2GHZ_CH14 | ||
+#define ATH9K_2GHZ_ALL REG_RULE(2400, 2483, 40, 0, 30, 0) | ||
+ | ||
+ | ||
|
||
-#define ATH9K_5GHZ_ALL ATH9K_5GHZ_5150_5350, \ | ||
- ATH9K_5GHZ_5470_5850 | ||
+#define ATH9K_5GHZ_ALL REG_RULE(5140, 5860, 40, 0, 30, 0) | ||
|
||
/* This one skips what we call "mid band" */ | ||
#define ATH9K_5GHZ_NO_MIDBAND ATH9K_5GHZ_5150_5350, \ | ||
@@ -81,9 +80,8 @@ | ||
static const struct ieee80211_regdomain ath_world_regdom_63_65 = { | ||
.alpha2 = "99", | ||
REGD_RULES( | ||
- ATH9K_2GHZ_CH01_11, | ||
- ATH9K_2GHZ_CH12_13, | ||
- ATH9K_5GHZ_NO_MIDBAND, | ||
+ ATH9K_2GHZ_ALL, | ||
+ ATH9K_5GHZ_ALL, | ||
) | ||
}; | ||
|
||
@@ -91,8 +89,8 @@ | ||
static const struct ieee80211_regdomain ath_world_regdom_64 = { | ||
.alpha2 = "99", | ||
REGD_RULES( | ||
- ATH9K_2GHZ_CH01_11, | ||
- ATH9K_5GHZ_NO_MIDBAND, | ||
+ ATH9K_2GHZ_ALL, | ||
+ ATH9K_5GHZ_ALL, | ||
) | ||
}; | ||
|
||
@@ -100,7 +98,7 @@ | ||
static const struct ieee80211_regdomain ath_world_regdom_66_69 = { | ||
.alpha2 = "99", | ||
REGD_RULES( | ||
- ATH9K_2GHZ_CH01_11, | ||
+ ATH9K_2GHZ_ALL, | ||
ATH9K_5GHZ_ALL, | ||
) | ||
}; | ||
@@ -109,8 +107,7 @@ | ||
static const struct ieee80211_regdomain ath_world_regdom_67_68_6A_6C = { | ||
.alpha2 = "99", | ||
REGD_RULES( | ||
- ATH9K_2GHZ_CH01_11, | ||
- ATH9K_2GHZ_CH12_13, | ||
+ ATH9K_2GHZ_ALL, | ||
ATH9K_5GHZ_ALL, | ||
) | ||
}; | ||
@@ -176,7 +173,7 @@ | ||
/* Frequency is one where radar detection is required */ | ||
static bool ath_is_radar_freq(u16 center_freq) | ||
{ | ||
- return (center_freq >= 5260 && center_freq <= 5700); | ||
+ return false; | ||
} | ||
|
||
/* |