twips1

Tweaking the Wireless Interface – Power Settings, Country etc. in Linux

I was asked in a recent WLAN class whether you can adjust the power level in a Wi-Fi radio.  The answer is yes (if you have the right operating system), and here is how.
For this demonstration, I am using Kali Linux but this should work on any Linux.  Comment below if you can confirm or deny that.
OK – so here is how you can do this.
Start with the ‘ifconfig’ or ‘iwconfig’ command to display current settings:
twips1
Shut down the wlan0 interface: ‘ifconfig wlan0 down’ and verify
twips2
We can change the country with the ‘iw reg set US’ command where you can replace the US two letter code with any other country.
A note here – different countries have different Wi-Fi regulations, and you could be in violation of your conutry laws.  So stop here if that is an issue.
For fun, we will change ours to Great Britain and bring the interface back up:
twips3
Now let’s change the power level: ‘iwconfig wlan0 txpower 18’
twips4
You may or may not be allowed to up your power level.
Imagine for a moment if you lowered someone’s power level to 5 dBm or less – hmmm.

I hope you find this article and its content helpful.  Comments are welcomed below.  If you would like to see more articles like this, please support us by clicking the patron link where you will receive free bonus access to courses and more, or simply buying us a cup of coffee!, and all comments are welcome!

Leave a Comment

Contact Us Here


Please verify.
Validation complete :)
Validation failed :(
 
Your contact request has been received. We usually respond within an hour, but please be patient. We will get back to you very soon.
Scroll to Top