mirror of https://github.com/aredn/aredn.git
aredn: fix extended spectrum index error (#390)
This commit is contained in:
parent
0a6f4a7a48
commit
5de12192f9
|
@ -1,8 +1,6 @@
|
|||
Index: openwrt/package/kernel/mac80211/patches/ath/301-extended-spectrum.patch
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ openwrt/package/kernel/mac80211/patches/ath/301-extended-spectrum.patch
|
||||
@@ -0,0 +1,170 @@
|
||||
+++ b/package/kernel/mac80211/patches/ath/301-extended-spectrum.patch
|
||||
@@ -0,0 +1,174 @@
|
||||
+Index: a/drivers/net/wireless/ath/ath9k/hw.h
|
||||
+===================================================================
|
||||
+--- a/drivers/net/wireless/ath/ath9k/hw.h
|
||||
|
@ -82,101 +80,103 @@ Index: openwrt/package/kernel/mac80211/patches/ath/301-extended-spectrum.patch
|
|||
+===================================================================
|
||||
+--- a/drivers/net/wireless/ath/ath9k/common-init.c
|
||||
++++ b/drivers/net/wireless/ath/ath9k/common-init.c
|
||||
+@@ -37,6 +37,10 @@
|
||||
+ * we have calibration data for all cards though to make
|
||||
+ * this static */
|
||||
+ static const struct ieee80211_channel ath9k_2ghz_chantable[] = {
|
||||
++ CHAN2G(2387, 0), /* Channel -4 */
|
||||
++ CHAN2G(2392, 0), /* Channel -3 */
|
||||
++ CHAN2G(2397, 0), /* Channel -2 */
|
||||
++ CHAN2G(2402, 0), /* Channel -1 */
|
||||
+ CHAN2G(2412, 0), /* Channel 1 */
|
||||
+ CHAN2G(2417, 1), /* Channel 2 */
|
||||
+ CHAN2G(2422, 2), /* Channel 3 */
|
||||
+@@ -68,6 +72,79 @@ static const struct ieee80211_channel at
|
||||
+ CHAN5G(5280, 19), /* Channel 56 */
|
||||
+ CHAN5G(5300, 20), /* Channel 60 */
|
||||
+ CHAN5G(5320, 21), /* Channel 64 */
|
||||
++ /* _We_ claim this "For the HAMS" */
|
||||
++ CHAN5G(5370, 40), /* Channel 74 */
|
||||
++ CHAN5G(5375, 41), /* Channel 75 */
|
||||
++ CHAN5G(5380, 42), /* Channel 76 */
|
||||
++ CHAN5G(5385, 43), /* Channel 77 */
|
||||
++ CHAN5G(5390, 44), /* Channel 78 */
|
||||
++ CHAN5G(5395, 45), /* Channel 79 */
|
||||
++ CHAN5G(5400, 46), /* Channel 80 */
|
||||
++ CHAN5G(5405, 47), /* Channel 81 */
|
||||
++ CHAN5G(5410, 48), /* Channel 82 */
|
||||
++ CHAN5G(5415, 49), /* Channel 83 */
|
||||
++ CHAN5G(5420, 50), /* Channel 84 */
|
||||
++ CHAN5G(5425, 51), /* Channel 85 */
|
||||
++ CHAN5G(5430, 52), /* Channel 86 */
|
||||
++ CHAN5G(5435, 53), /* Channel 87 */
|
||||
++ CHAN5G(5440, 54), /* Channel 88 */
|
||||
++ CHAN5G(5445, 55), /* Channel 89 */
|
||||
++ CHAN5G(5450, 56), /* Channel 90 */
|
||||
++ CHAN5G(5455, 57), /* Channel 91 */
|
||||
++ CHAN5G(5460, 58), /* Channel 92 */
|
||||
++ CHAN5G(5465, 59), /* Channel 93 */
|
||||
++ CHAN5G(5470, 60), /* Channel 94 */
|
||||
++ CHAN5G(5475, 61), /* Channel 95 */
|
||||
++ CHAN5G(5480, 62), /* Channel 96 */
|
||||
++ CHAN5G(5485, 63), /* Channel 97 */
|
||||
++ CHAN5G(5490, 64), /* Channel 98 */
|
||||
++ CHAN5G(5495, 65), /* Channel 99 */
|
||||
++ CHAN5G(5655, 66), /* Channel 131 */
|
||||
++ CHAN5G(5665, 67), /* Channel 133 */
|
||||
++ CHAN5G(5670, 68), /* Channel 134 */
|
||||
++ CHAN5G(5675, 69), /* Channel 135 */
|
||||
++ CHAN5G(5685, 70), /* Channel 137 */
|
||||
++ CHAN5G(5690, 71), /* Channel 138 */
|
||||
++ CHAN5G(5695, 72), /* Channel 139 */
|
||||
++ CHAN5G(5705, 73), /* Channel 141 */
|
||||
++ CHAN5G(5710, 74), /* Channel 142 */
|
||||
++ CHAN5G(5715, 75), /* Channel 143 */
|
||||
++ CHAN5G(5720, 76), /* Channel 144 */
|
||||
++ CHAN5G(5725, 77), /* Channel 145 */
|
||||
++ CHAN5G(5730, 78), /* Channel 146 */
|
||||
++ CHAN5G(5735, 79), /* Channel 147 */
|
||||
++ CHAN5G(5740, 80), /* Channel 148 */
|
||||
++ CHAN5G(5750, 81), /* Channel 150 */
|
||||
++ CHAN5G(5755, 82), /* Channel 151 */
|
||||
++ CHAN5G(5760, 83), /* Channel 152 */
|
||||
++ CHAN5G(5770, 84), /* Channel 154 */
|
||||
++ CHAN5G(5775, 85), /* Channel 155 */
|
||||
++ CHAN5G(5780, 86), /* Channel 156 */
|
||||
++ CHAN5G(5790, 87), /* Channel 158 */
|
||||
++ CHAN5G(5795, 88), /* Channel 159 */
|
||||
++ CHAN5G(5800, 89), /* Channel 160 */
|
||||
++ CHAN5G(5810, 90), /* Channel 162 */
|
||||
++ CHAN5G(5815, 91), /* Channel 163 */
|
||||
++ CHAN5G(5820, 92), /* Channel 164 */
|
||||
++ CHAN5G(5830, 93), /* Channel 166 */
|
||||
++ CHAN5G(5835, 94), /* Channel 167 */
|
||||
++ CHAN5G(5840, 95), /* Channel 168 */
|
||||
++ CHAN5G(5845, 96), /* Channel 169 */
|
||||
++ CHAN5G(5850, 97), /* Channel 170 */
|
||||
++ CHAN5G(5855, 98), /* Channel 171 */
|
||||
++ CHAN5G(5860, 99), /* Channel 172 */
|
||||
++ CHAN5G(5865, 100), /* Channel 173 */
|
||||
++ CHAN5G(5870, 101), /* Channel 174 */
|
||||
++ CHAN5G(5875, 102), /* Channel 175 */
|
||||
++ CHAN5G(5880, 103), /* Channel 176 */
|
||||
++ CHAN5G(5885, 104), /* Channel 177 */
|
||||
++ CHAN5G(5890, 105), /* Channel 178 */
|
||||
++ CHAN5G(5895, 106), /* Channel 179 */
|
||||
++ CHAN5G(5900, 107), /* Channel 180 */
|
||||
++ CHAN5G(5905, 108), /* Channel 181 */
|
||||
++ CHAN5G(5910, 109), /* Channel 182 */
|
||||
++ CHAN5G(5915, 110), /* Channel 183 */
|
||||
++ CHAN5G(5920, 111), /* Channel 184 */
|
||||
+ /* _We_ call this "Middle band" */
|
||||
+ CHAN5G(5500, 22), /* Channel 100 */
|
||||
+ CHAN5G(5520, 23), /* Channel 104 */
|
||||
Index: openwrt/package/network/utils/iw/patches/300-extended_spectrum.patch
|
||||
===================================================================
|
||||
+***************
|
||||
+*** 37,42 ****
|
||||
+--- 37,46 ----
|
||||
+ * we have calibration data for all cards though to make
|
||||
+ * this static */
|
||||
+ static const struct ieee80211_channel ath9k_2ghz_chantable[] = {
|
||||
++ CHAN2G(2387, 38), /* Channel -4 */
|
||||
++ CHAN2G(2392, 39), /* Channel -3 */
|
||||
++ CHAN2G(2397, 40), /* Channel -2 */
|
||||
++ CHAN2G(2402, 41), /* Channel -1 */
|
||||
+ CHAN2G(2412, 0), /* Channel 1 */
|
||||
+ CHAN2G(2417, 1), /* Channel 2 */
|
||||
+ CHAN2G(2422, 2), /* Channel 3 */
|
||||
+*************** static const struct ieee80211_channel at
|
||||
+*** 68,73 ****
|
||||
+--- 72,150 ----
|
||||
+ CHAN5G(5280, 19), /* Channel 56 */
|
||||
+ CHAN5G(5300, 20), /* Channel 60 */
|
||||
+ CHAN5G(5320, 21), /* Channel 64 */
|
||||
++ /* Added "For the HAMS" */
|
||||
++ CHAN5G(5370, 42), /* Channel 74 */
|
||||
++ CHAN5G(5375, 43), /* Channel 75 */
|
||||
++ CHAN5G(5380, 44), /* Channel 76 */
|
||||
++ CHAN5G(5385, 45), /* Channel 77 */
|
||||
++ CHAN5G(5390, 46), /* Channel 78 */
|
||||
++ CHAN5G(5395, 47), /* Channel 79 */
|
||||
++ CHAN5G(5400, 48), /* Channel 80 */
|
||||
++ CHAN5G(5405, 49), /* Channel 81 */
|
||||
++ CHAN5G(5410, 50), /* Channel 82 */
|
||||
++ CHAN5G(5415, 51), /* Channel 83 */
|
||||
++ CHAN5G(5420, 52), /* Channel 84 */
|
||||
++ CHAN5G(5425, 53), /* Channel 85 */
|
||||
++ CHAN5G(5430, 54), /* Channel 86 */
|
||||
++ CHAN5G(5435, 55), /* Channel 87 */
|
||||
++ CHAN5G(5440, 56), /* Channel 88 */
|
||||
++ CHAN5G(5445, 57), /* Channel 89 */
|
||||
++ CHAN5G(5450, 58), /* Channel 90 */
|
||||
++ CHAN5G(5455, 59), /* Channel 91 */
|
||||
++ CHAN5G(5460, 60), /* Channel 92 */
|
||||
++ CHAN5G(5465, 61), /* Channel 93 */
|
||||
++ CHAN5G(5470, 62), /* Channel 94 */
|
||||
++ CHAN5G(5475, 63), /* Channel 95 */
|
||||
++ CHAN5G(5480, 64), /* Channel 96 */
|
||||
++ CHAN5G(5485, 65), /* Channel 97 */
|
||||
++ CHAN5G(5490, 66), /* Channel 98 */
|
||||
++ CHAN5G(5495, 67), /* Channel 99 */
|
||||
++ CHAN5G(5655, 68), /* Channel 131 */
|
||||
++ CHAN5G(5665, 69), /* Channel 133 */
|
||||
++ CHAN5G(5670, 70), /* Channel 134 */
|
||||
++ CHAN5G(5675, 71), /* Channel 135 */
|
||||
++ CHAN5G(5685, 72), /* Channel 137 */
|
||||
++ CHAN5G(5690, 73), /* Channel 138 */
|
||||
++ CHAN5G(5695, 74), /* Channel 139 */
|
||||
++ CHAN5G(5705, 75), /* Channel 141 */
|
||||
++ CHAN5G(5710, 76), /* Channel 142 */
|
||||
++ CHAN5G(5715, 77), /* Channel 143 */
|
||||
++ CHAN5G(5720, 78), /* Channel 144 */
|
||||
++ CHAN5G(5725, 79), /* Channel 145 */
|
||||
++ CHAN5G(5730, 80), /* Channel 146 */
|
||||
++ CHAN5G(5735, 81), /* Channel 147 */
|
||||
++ CHAN5G(5740, 82), /* Channel 148 */
|
||||
++ CHAN5G(5750, 83), /* Channel 150 */
|
||||
++ CHAN5G(5755, 84), /* Channel 151 */
|
||||
++ CHAN5G(5760, 85), /* Channel 152 */
|
||||
++ CHAN5G(5770, 86), /* Channel 154 */
|
||||
++ CHAN5G(5775, 87), /* Channel 155 */
|
||||
++ CHAN5G(5780, 88), /* Channel 156 */
|
||||
++ CHAN5G(5790, 89), /* Channel 158 */
|
||||
++ CHAN5G(5795, 90), /* Channel 159 */
|
||||
++ CHAN5G(5800, 91), /* Channel 160 */
|
||||
++ CHAN5G(5810, 92), /* Channel 162 */
|
||||
++ CHAN5G(5815, 93), /* Channel 163 */
|
||||
++ CHAN5G(5820, 94), /* Channel 164 */
|
||||
++ CHAN5G(5830, 95), /* Channel 166 */
|
||||
++ CHAN5G(5835, 96), /* Channel 167 */
|
||||
++ CHAN5G(5840, 97), /* Channel 168 */
|
||||
++ CHAN5G(5845, 98), /* Channel 169 */
|
||||
++ CHAN5G(5850, 99), /* Channel 170 */
|
||||
++ CHAN5G(5855, 100), /* Channel 171 */
|
||||
++ CHAN5G(5860, 101), /* Channel 172 */
|
||||
++ CHAN5G(5865, 102), /* Channel 173 */
|
||||
++ CHAN5G(5870, 103), /* Channel 174 */
|
||||
++ CHAN5G(5875, 104), /* Channel 175 */
|
||||
++ CHAN5G(5880, 105), /* Channel 176 */
|
||||
++ CHAN5G(5885, 106), /* Channel 177 */
|
||||
++ CHAN5G(5890, 107), /* Channel 178 */
|
||||
++ CHAN5G(5895, 108), /* Channel 179 */
|
||||
++ CHAN5G(5900, 109), /* Channel 180 */
|
||||
++ CHAN5G(5905, 110), /* Channel 181 */
|
||||
++ CHAN5G(5910, 111), /* Channel 182 */
|
||||
++ CHAN5G(5915, 112), /* Channel 183 */
|
||||
++ CHAN5G(5920, 113), /* Channel 184 */
|
||||
+ /* _We_ call this "Middle band" */
|
||||
+ CHAN5G(5500, 22), /* Channel 100 */
|
||||
+ CHAN5G(5520, 23), /* Channel 104 */
|
||||
--- /dev/null
|
||||
+++ openwrt/package/network/utils/iw/patches/300-extended_spectrum.patch
|
||||
+++ b/package/network/utils/iw/patches/300-extended_spectrum.patch
|
||||
@@ -0,0 +1,39 @@
|
||||
+--- a/scan.c
|
||||
++++ b/scan.c
|
||||
|
@ -217,10 +217,8 @@ Index: openwrt/package/network/utils/iw/patches/300-extended_spectrum.patch
|
|||
+ return 4000 + chan * 5;
|
||||
+ else
|
||||
+ return 5000 + chan * 5;
|
||||
Index: openwrt/package/network/utils/iwinfo/patches/300-extended-spectrum.patch
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ openwrt/package/network/utils/iwinfo/patches/300-extended-spectrum.patch
|
||||
+++ b/package/network/utils/iwinfo/patches/300-extended-spectrum.patch
|
||||
@@ -0,0 +1,74 @@
|
||||
+--- a/iwinfo_cli.c
|
||||
++++ b/iwinfo_cli.c
|
||||
|
|
Loading…
Reference in New Issue