With the Raspberry Pi (latest Raspbian OS) configured as a WiFi Access Point that gives internet access through ethernet interface, I'm doing some WiFi Signal Strength testing.
In reduced space to work, I need to test quality of network with a script that can increment or decrement the signal strength, via shell script.
So, a simple use-case thought is, to drop to minimum the signal strength, in order to get a low quality connection, or disconnection from a short distance, let's say, from two to three meters.
I tried with
iwconfig wlan0 txpower 0
I get this output:
wlan0 IEEE 802.11bgn Mode:Master Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
And with...
iw dev wlan0 set txpower limit 0.00000000000000000000000000000000000000001
I see:
wlan0 IEEE 802.11bgn Mode:Master Tx-Power=1 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
But, no field effects, I can have a solid rock connection from the location an Android phone device is.
I've already read the following sources, and mapped some data from the manufacturer's specs, in order to get something, but nothing whatsoever.
Raspberry Pi 3: wrong tx-power in iwconfig
https://www.raspberrypi.org/forums/viewtopic.php?t=145607&p=959671
http://www.cypress.com/file/298756/download
So, how can the signal strength be modified with commands, in order to get a low quality WiFi Access Point?