Skip to content

Commit

Permalink
Unlock channels with Ninux hack
Browse files Browse the repository at this point in the history
  • Loading branch information
zioproto committed Aug 12, 2014
1 parent 8907f69 commit e5c8c9b
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 20 deletions.
25 changes: 5 additions & 20 deletions package/kernel/mac80211/files/regdb.txt
@@ -1,20 +1,7 @@
# This is the world regulatory domain
country 00:
(2402 - 2472 @ 40), (20)
# Channel 12 - 13.
(2457 - 2482 @ 40), (20), NO-IR
# Channel 14. Only JP enables this and for 802.11b only
(2474 - 2494 @ 20), (20), NO-IR, NO-OFDM
# Channel 36 - 48
(5170 - 5250 @ 160), (20), NO-IR
# Channel 52 - 64
(5250 - 5330 @ 160), (20), NO-IR, DFS
# Channel 100 - 144
(5490 - 5730 @ 160), (20), NO-IR, DFS
# Channel 149 - 165
(5735 - 5835 @ 80), (20), NO-IR
# IEEE 802.11ad (60GHz), channels 1..3
(57240 - 63720 @ 2160), (0)
(2400 - 2483 @ 40), (0, 30)
(5140 - 5860 @ 40), (0, 30)


country AD:
Expand Down Expand Up @@ -904,11 +891,9 @@ country UA: DFS-ETSI
# 60 gHz band channels 1-4, ref: Etsi En 302 567
(57240 - 65880 @ 2160), (40), NO-OUTDOOR

country US: DFS-FCC
(2402 - 2472 @ 40), (30)
(5170 - 5250 @ 80), (17)
(5250 - 5330 @ 80), (23), DFS
(5735 - 5835 @ 80), (30)
country US:
(2400 - 2483 @ 40), (0, 30)
(5140 - 5860 @ 40), (0, 30)
# 60g band
# reference: http://cfr.regstoday.com/47cfr15.aspx#47_CFR_15p255
# channels 1,2,3, EIRP=40dBm(43dBm peak)
Expand Down
72 changes: 72 additions & 0 deletions package/kernel/mac80211/patches/930-regulatory-test.patch
@@ -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;
}

/*

0 comments on commit e5c8c9b

Please sign in to comment.