int0x76

Boost WiFi on OpenWRT

Oct 22nd, 2014
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. Boost WiFi on OpenWRT
  2.  
  3.  
  4. First there is no iwconfig you need to install it:
  5. opkg update
  6. opkg install wireless-tools
  7.  
  8. iwconfig command shows current wireless power outpu:
  9. # iwconfig
  10. wlan0 IEEE 802.11bgn Mode:Master Tx-Power=20 dBm
  11.  
  12. Maximal power is defined by multiple capability of your hardware and by laws in your country (regulatory domain).
  13.  
  14.  
  15. Check your current regulatory domain via / etc/config/wireless file or just use this command:
  16. # iw reg get
  17. country US:
  18. (2402 - 2472 @ 40), (3, 27)
  19. (5170 - 5250 @ 40), (3, 17)
  20. (5250 - 5330 @ 40), (3, 20), DFS
  21. (5490 - 5600 @ 40), (3, 20), DFS
  22. (5650 - 5710 @ 40), (3, 20), DFS
  23. (5735 - 5835 @ 40), (3, 30)
  24.  
  25.  
  26. I don’t live in USA so I’ll change this to my country:
  27. # iw reg set HR
  28.  
  29. # iw reg get
  30. country HR:
  31. (2402 - 2482 @ 40), (N/A, 20)
  32. (5170 - 5250 @ 40), (N/A, 20)
  33. (5250 - 5330 @ 40), (N/A, 20), DFS
  34. (5490 - 5710 @ 40), (N/A, 27), DFS
  35.  
  36. You need to be careful because some countries like BO allow setting upto 1000 mW (30 dBm)! But still if your hardware is not capable of such high power that you can’t push it over the limit.
  37.  
  38. Check wireless capability of your hardware via iw command:
  39. iw phy0 info
  40.  
  41. Manualy set output power to 50mW (17dBm):
  42. iw phy phy0 set txpower fixed 17000
  43. or
  44. iwconfig wlan0 txpower 17
Advertisement
Add Comment
Please, Sign In to add comment