forked from rodizio1/EZ-WifiBroadcast
-
Notifications
You must be signed in to change notification settings - Fork 0
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
104 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
diff -Naur v7-kernel/drivers/net/wireless/ath/regd.c v7-kernel.ath-regd/drivers/net/wireless/ath/regd.c | ||
--- v7-kernel/drivers/net/wireless/ath/regd.c 2018-04-05 16:35:15.000000000 +0200 | ||
+++ v7-kernel.ath-regd/drivers/net/wireless/ath/regd.c 2018-04-09 12:11:07.691651027 +0200 | ||
@@ -33,22 +33,16 @@ | ||
*/ | ||
|
||
/* Only these channels all allow active scan on all world regulatory domains */ | ||
-#define ATH9K_2GHZ_CH01_11 REG_RULE(2412-10, 2462+10, 40, 0, 20, 0) | ||
+#define ATH9K_2GHZ_CH01_11 REG_RULE(2312-10, 2462+10, 40, 0, 30, 0) | ||
|
||
/* We enable active scan on these a case by case basis by regulatory domain */ | ||
-#define ATH9K_2GHZ_CH12_13 REG_RULE(2467-10, 2472+10, 40, 0, 20,\ | ||
- NL80211_RRF_NO_IR) | ||
-#define ATH9K_2GHZ_CH14 REG_RULE(2484-10, 2484+10, 40, 0, 20,\ | ||
- NL80211_RRF_NO_IR | \ | ||
- NL80211_RRF_NO_OFDM) | ||
+#define ATH9K_2GHZ_CH12_13 REG_RULE(2467-10, 2472+10, 40, 0, 30, 0) | ||
+#define ATH9K_2GHZ_CH14 REG_RULE(2484-10, 2732+10, 40, 0, 30, 0) | ||
|
||
/* We allow IBSS on these on a case by case basis by regulatory domain */ | ||
-#define ATH9K_5GHZ_5150_5350 REG_RULE(5150-10, 5350+10, 80, 0, 30,\ | ||
- NL80211_RRF_NO_IR) | ||
-#define ATH9K_5GHZ_5470_5850 REG_RULE(5470-10, 5850+10, 80, 0, 30,\ | ||
- NL80211_RRF_NO_IR) | ||
-#define ATH9K_5GHZ_5725_5850 REG_RULE(5725-10, 5850+10, 80, 0, 30,\ | ||
- NL80211_RRF_NO_IR) | ||
+#define ATH9K_5GHZ_5150_5350 REG_RULE(4920-10, 5350+10, 80, 0, 30, 0) | ||
+#define ATH9K_5GHZ_5470_5850 REG_RULE(5470-10, 6100+10, 80, 0, 30, 0) | ||
+#define ATH9K_5GHZ_5725_5850 REG_RULE(5725-10, 6100+10, 80, 0, 30, 0) | ||
|
||
#define ATH9K_2GHZ_ALL ATH9K_2GHZ_CH01_11, \ | ||
ATH9K_2GHZ_CH12_13, \ | ||
@@ -77,9 +71,8 @@ | ||
.n_reg_rules = 4, | ||
.alpha2 = "99", | ||
.reg_rules = { | ||
- ATH9K_2GHZ_CH01_11, | ||
- ATH9K_2GHZ_CH12_13, | ||
- ATH9K_5GHZ_NO_MIDBAND, | ||
+ ATH9K_2GHZ_ALL, | ||
+ ATH9K_5GHZ_ALL, | ||
} | ||
}; | ||
|
||
@@ -88,8 +81,8 @@ | ||
.n_reg_rules = 3, | ||
.alpha2 = "99", | ||
.reg_rules = { | ||
- ATH9K_2GHZ_CH01_11, | ||
- ATH9K_5GHZ_NO_MIDBAND, | ||
+ ATH9K_2GHZ_ALL, | ||
+ ATH9K_5GHZ_ALL, | ||
} | ||
}; | ||
|
||
@@ -98,7 +91,7 @@ | ||
.n_reg_rules = 3, | ||
.alpha2 = "99", | ||
.reg_rules = { | ||
- ATH9K_2GHZ_CH01_11, | ||
+ ATH9K_2GHZ_ALL, | ||
ATH9K_5GHZ_ALL, | ||
} | ||
}; | ||
@@ -108,8 +101,7 @@ | ||
.n_reg_rules = 4, | ||
.alpha2 = "99", | ||
.reg_rules = { | ||
- ATH9K_2GHZ_CH01_11, | ||
- ATH9K_2GHZ_CH12_13, | ||
+ ATH9K_2GHZ_ALL, | ||
ATH9K_5GHZ_ALL, | ||
} | ||
}; | ||
@@ -258,9 +250,10 @@ | ||
struct ath_regulatory *reg) | ||
|
||
{ | ||
- if (reg->country_code == CTRY_INDIA) | ||
- return (center_freq >= 5500 && center_freq <= 5700); | ||
- return (center_freq >= 5260 && center_freq <= 5700); | ||
+// if (reg->country_code == CTRY_INDIA) | ||
+// return (center_freq >= 5500 && center_freq <= 5700); | ||
+// return (center_freq >= 5260 && center_freq <= 5700); | ||
+ return 0; | ||
} | ||
|
||
static void ath_force_clear_no_ir_chan(struct wiphy *wiphy, |
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,16 @@ | ||
diff -Naur v7-kernel/drivers/net/wireless/ralink/rt2x00/rt2x00lib.h v7-kernel.rt2800usb-misc/drivers/net/wireless/ralink/rt2x00/rt2x00lib.h | ||
--- v7-kernel/drivers/net/wireless/ralink/rt2x00/rt2x00lib.h 2018-04-05 16:35:15.000000000 +0200 | ||
+++ v7-kernel.rt2800usb-misc/drivers/net/wireless/ralink/rt2x00/rt2x00lib.h 2018-04-09 12:25:45.755664202 +0200 | ||
@@ -29,10 +29,10 @@ | ||
* Interval defines | ||
*/ | ||
#define WATCHDOG_INTERVAL round_jiffies_relative(HZ) | ||
-#define LINK_TUNE_SECONDS 1 | ||
+#define LINK_TUNE_SECONDS 2 | ||
#define LINK_TUNE_INTERVAL round_jiffies_relative(LINK_TUNE_SECONDS * HZ) | ||
#define AGC_SECONDS 4 | ||
-#define VCO_SECONDS 10 | ||
+#define VCO_SECONDS 180 | ||
|
||
/* | ||
* rt2x00_rate: Per rate device information |