How to reduce wifi txpower via script

Started by hunter86_bg, August 24, 2020, 09:07:46 PM

Previous topic - Next topic
Hello All,

I'm planning to replace my Mikrotik with opensense and I want to mirror all my scripts I got on the Mikrotik.

The one I try to recreate is for reducing the txpower to the minimum when there are no clients available and increasing it to maximum when a client connects.

I'm trying to figure out how to change the txpower via the ifconfig , but it fails with (keep in mind that I'm typing it manually ):
root@firewall1:~ # ifconfig run0_wlan1 txpower 10
ifconfig SIOCS80211: Operation not supported


I tried to bring down the interface first , but it also fails.
Any hints are appreciated.

I've tried changing from web or cli and no change. It seems that 802.11b/g are "hardcoded" to txpower 30.
I guess my other option is to just disable the wifi during the night.