Skip to content

Instantly share code, notes, and snippets.

@samgooi4189
Created October 11, 2016 18:20
Show Gist options
  • Save samgooi4189/0afd272a658c7c72782e092b47f9eed5 to your computer and use it in GitHub Desktop.
Save samgooi4189/0afd272a658c7c72782e092b47f9eed5 to your computer and use it in GitHub Desktop.
Improve wifi makefile
# set regional to BO (Bolivia) since they allow use of 1000 mW tx-power
set-bo:
sudo ifconfig wlan0 down
sudo iw reg set BO
sudo ifconfig wlan0 up
iwconfig wlan0
# Side effects:
# overheating of the power amplifier chip and the card which will cause lower efficiency and more data errors;
# overdriving the amplifier which will cause more data errors;
# excessive power usage for the card and this may overload the default power supply of the board that the card is located on resulting in voltage drop and reboot or excessive temperatures for the board.
#
increase-tx-power:
sudo iwconfig wlan0 txpower 20
iwconfig wlan0
# This will switch off the special power management system for the wireless adaptor and thus it will get more power and will work more
set-more-power:
sudo iwconfig wlan0 power off
# setting the rts and frag for performance and reliability
set-rts-frag:
sudo iwconfig wlan0 rts 2347
sudo iwconfig wlan0 frag 2346
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment