tuxmartin

OpenWrt 5,4GHz reghack

Sep 7th, 2015
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.11 KB | None | 0 0
  1. #OpenWrt 14.07 (r42625 - oficialni image pro Ubiquity RouterStation (ar71xx))
  2.  
  3.  
  4. # ORIGINALNI STAV:
  5.  
  6. root@AP66:~# iw reg set CZ
  7. root@AP66:~# iw phy phy0 info
  8. Wiphy phy0
  9. max # scan SSIDs: 4
  10. max scan IEs length: 2285 bytes
  11. Retry short limit: 7
  12. Retry long limit: 4
  13. Coverage class: 0 (up to 0m)
  14. Available Antennas: TX 0x3 RX 0x3
  15. Configured Antennas: TX 0x3 RX 0x3
  16. Supported interface modes:
  17. * IBSS
  18. * managed
  19. * AP
  20. * AP/VLAN
  21. * monitor
  22. * mesh point
  23. Band 1:
  24. Frequencies:
  25. * 2412 MHz [1] (20.0 dBm)
  26. * 2417 MHz [2] (20.0 dBm)
  27. * 2422 MHz [3] (20.0 dBm)
  28. * 2427 MHz [4] (20.0 dBm)
  29. * 2432 MHz [5] (20.0 dBm)
  30. * 2437 MHz [6] (20.0 dBm)
  31. * 2442 MHz [7] (20.0 dBm)
  32. * 2447 MHz [8] (20.0 dBm)
  33. * 2452 MHz [9] (20.0 dBm)
  34. * 2457 MHz [10] (20.0 dBm)
  35. * 2462 MHz [11] (20.0 dBm)
  36. * 2467 MHz [12] (disabled)
  37. * 2472 MHz [13] (disabled)
  38. * 2484 MHz [14] (disabled)
  39. Band 2:
  40. Frequencies:
  41. * 5040 MHz [8] (disabled)
  42. * 5060 MHz [12] (disabled)
  43. * 5080 MHz [16] (disabled)
  44. * 5180 MHz [36] (17.0 dBm)
  45. * 5200 MHz [40] (17.0 dBm)
  46. * 5220 MHz [44] (17.0 dBm)
  47. * 5240 MHz [48] (17.0 dBm)
  48. * 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
  49. DFS state: usable (for 2 sec)
  50. DFS CAC time: 60000 ms
  51. * 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
  52. DFS state: usable (for 2 sec)
  53. DFS CAC time: 60000 ms
  54. * 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
  55. DFS state: usable (for 2 sec)
  56. DFS CAC time: 60000 ms
  57. * 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
  58. DFS state: usable (for 2 sec)
  59. DFS CAC time: 60000 ms
  60. * 5500 MHz [100] (disabled)
  61. * 5520 MHz [104] (disabled)
  62. * 5540 MHz [108] (disabled)
  63. * 5560 MHz [112] (disabled)
  64. * 5580 MHz [116] (disabled)
  65. * 5600 MHz [120] (disabled)
  66. * 5620 MHz [124] (disabled)
  67. * 5640 MHz [128] (disabled)
  68. * 5660 MHz [132] (disabled)
  69. * 5680 MHz [136] (disabled)
  70. * 5700 MHz [140] (disabled)
  71. * 5745 MHz [149] (disabled)
  72. * 5765 MHz [153] (disabled)
  73. * 5785 MHz [157] (disabled)
  74. * 5805 MHz [161] (disabled)
  75. * 5825 MHz [165] (disabled)
  76. valid interface combinations:
  77. * #{ managed } <= 2048, #{ AP, mesh point } <= 4, #{ IBSS } <= 1,
  78. total <= 2048, #channels <= 1
  79. HT Capability overrides:
  80. * MCS: ff ff ff ff ff ff ff ff ff ff
  81. * maximum A-MSDU length
  82. * supported channel width
  83. * short GI for 40 MHz
  84. * max A-MPDU length exponent
  85. * min MPDU start spacing
  86. root@AP66:~#
  87.  
  88. # UPRAVA:
  89.  
  90. root@AP66:~# cd /tmp/
  91. root@AP66:/tmp# wget http://luci.subsignal.org/~jow/reghack/reghack.mips.elf
  92. Connecting to luci.subsignal.org (188.40.166.7:80)
  93. reghack.mips.elf 100% |*********************************************************************************************************************************************| 46156 0:00:00 ETA
  94. root@AP66:/tmp# chmod +x reghack.mips.elf
  95. root@AP66:/tmp# ./reghack.mips.elf /lib/modules/*/ath.ko
  96. mmap(): Invalid argument
  97. Memory mapping failed (missing fs support?), retrying from tmpfs
  98. Patching @ 0x000002f0: ath_is_radar_freq() MIPS opcode in ath/regd.o
  99. Patching @ 0x000003fc: ath_is_radar_freq() MIPS opcode in ath/regd.o
  100. Patching @ 0x0000342c: ath world regdomain with 5 rules in ath/regd.o
  101. Patching @ 0x000034cc: ath world regdomain with 4 rules in ath/regd.o
  102. Patching @ 0x00003550: ath world regdomain with 4 rules in ath/regd.o
  103. Patching @ 0x000035d4: ath world regdomain with 5 rules in ath/regd.o
  104. root@AP66:/tmp#
  105. root@AP66:/tmp# ./reghack.mips.elf /lib/modules/*/cfg80211.ko
  106. mmap(): Invalid argument
  107. Memory mapping failed (missing fs support?), retrying from tmpfs
  108. Patching @ 0x0002589c: core world6 regdomain in cfg80211/reg.o
  109. Patching @ 0x000267ac: embedded US regdomain in cfg80211/regdb.o
  110. Patching @ 0x0002ae30: embedded 00 regdomain in cfg80211/regdb.o
  111. root@AP66:/tmp#
  112. root@AP66:/tmp# reboot
  113.  
  114.  
  115. # STAV PO UPRAVE:
  116.  
  117. root@AP66:~# iw reg set CZ
  118. root@AP66:~# iw phy phy0 info
  119. Wiphy phy0
  120. max # scan SSIDs: 4
  121. max scan IEs length: 2285 bytes
  122. Retry short limit: 7
  123. Retry long limit: 4
  124. Coverage class: 0 (up to 0m)
  125. Available Antennas: TX 0x3 RX 0x3
  126. Configured Antennas: TX 0x3 RX 0x3
  127. Supported interface modes:
  128. * IBSS
  129. * managed
  130. * AP
  131. * AP/VLAN
  132. * monitor
  133. * mesh point
  134. Band 1:
  135. Frequencies:
  136. * 2412 MHz [1] (20.0 dBm)
  137. * 2417 MHz [2] (20.0 dBm)
  138. * 2422 MHz [3] (20.0 dBm)
  139. * 2427 MHz [4] (20.0 dBm)
  140. * 2432 MHz [5] (20.0 dBm)
  141. * 2437 MHz [6] (20.0 dBm)
  142. * 2442 MHz [7] (20.0 dBm)
  143. * 2447 MHz [8] (20.0 dBm)
  144. * 2452 MHz [9] (20.0 dBm)
  145. * 2457 MHz [10] (20.0 dBm)
  146. * 2462 MHz [11] (20.0 dBm)
  147. * 2467 MHz [12] (20.0 dBm)
  148. * 2472 MHz [13] (20.0 dBm)
  149. * 2484 MHz [14] (disabled)
  150. Band 2:
  151. Frequencies:
  152. * 5040 MHz [8] (disabled)
  153. * 5060 MHz [12] (disabled)
  154. * 5080 MHz [16] (disabled)
  155. * 5180 MHz [36] (23.0 dBm)
  156. * 5200 MHz [40] (23.0 dBm)
  157. * 5220 MHz [44] (23.0 dBm)
  158. * 5240 MHz [48] (23.0 dBm)
  159. * 5260 MHz [52] (20.0 dBm) (radar detection)
  160. DFS state: usable (for 3 sec)
  161. DFS CAC time: 60000 ms
  162. * 5280 MHz [56] (20.0 dBm) (radar detection)
  163. DFS state: usable (for 3 sec)
  164. DFS CAC time: 60000 ms
  165. * 5300 MHz [60] (20.0 dBm) (radar detection)
  166. DFS state: usable (for 3 sec)
  167. DFS CAC time: 60000 ms
  168. * 5320 MHz [64] (20.0 dBm) (radar detection)
  169. DFS state: usable (for 3 sec)
  170. DFS CAC time: 60000 ms
  171. * 5500 MHz [100] (27.0 dBm) (radar detection)
  172. DFS state: usable (for 3 sec)
  173. DFS CAC time: 60000 ms
  174. * 5520 MHz [104] (27.0 dBm) (radar detection)
  175. DFS state: usable (for 3 sec)
  176. DFS CAC time: 60000 ms
  177. * 5540 MHz [108] (27.0 dBm) (radar detection)
  178. DFS state: usable (for 3 sec)
  179. DFS CAC time: 60000 ms
  180. * 5560 MHz [112] (27.0 dBm) (radar detection)
  181. DFS state: usable (for 3 sec)
  182. DFS CAC time: 60000 ms
  183. * 5580 MHz [116] (27.0 dBm) (radar detection)
  184. DFS state: usable (for 3 sec)
  185. DFS CAC time: 60000 ms
  186. * 5600 MHz [120] (27.0 dBm) (radar detection)
  187. DFS state: usable (for 3 sec)
  188. DFS CAC time: 60000 ms
  189. * 5620 MHz [124] (27.0 dBm) (radar detection)
  190. DFS state: usable (for 3 sec)
  191. DFS CAC time: 60000 ms
  192. * 5640 MHz [128] (27.0 dBm) (radar detection)
  193. DFS state: usable (for 3 sec)
  194. DFS CAC time: 60000 ms
  195. * 5660 MHz [132] (27.0 dBm) (radar detection)
  196. DFS state: usable (for 3 sec)
  197. DFS CAC time: 60000 ms
  198. * 5680 MHz [136] (27.0 dBm) (radar detection)
  199. DFS state: usable (for 3 sec)
  200. DFS CAC time: 60000 ms
  201. * 5700 MHz [140] (27.0 dBm) (radar detection)
  202. DFS state: usable (for 3 sec)
  203. DFS CAC time: 60000 ms
  204. * 5745 MHz [149] (disabled)
  205. * 5765 MHz [153] (disabled)
  206. * 5785 MHz [157] (disabled)
  207. * 5805 MHz [161] (disabled)
  208. * 5825 MHz [165] (disabled)
  209. valid interface combinations:
  210. * #{ managed } <= 2048, #{ AP, mesh point } <= 4, #{ IBSS } <= 1,
  211. total <= 2048, #channels <= 1
  212. HT Capability overrides:
  213. * MCS: ff ff ff ff ff ff ff ff ff ff
  214. * maximum A-MSDU length
  215. * supported channel width
  216. * short GI for 40 MHz
  217. * max A-MPDU length exponent
  218. * min MPDU start spacing
  219. root@AP66:~#
Advertisement
Add Comment
Please, Sign In to add comment