I have to lower the range of a wlan adapter to limit the area I'm capturing data in. I'm using the newest version of Raspbian, Pi 4 and the adapter is ralink rt2870
I've tried adjusting the txpower using the
iw dev wlan0 set txpower fixed 1(and any number up to 30) but I get
command failed: Operation not support (-95)
iw reg get returns this which makes me believe the driver is hardcoded to 20dbm:
global country 00: DFS-UNSET (2402 - 2472 @ 40), (N/A, 20), (N/A) (2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN (2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN (5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN (5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN (57240 - 63720 @ 2160), (N/A, 0), (N/A)
If there is no way to adjust the txpower, what other ways can I adjust/lower the range of the antenna?
I have already tried (and it works but might not be enough) to simply remove the antenna and just use the adapter. Last resort is simply buying lower power antenna or an adapter that support txpower change AND monitoring and is pi4 compatible