Add a new script to toggle ap tx speed

This commit is contained in:
Pothi Kalimuthu 2022-01-24 08:07:40 +05:30
parent 2ede2d4b5e
commit 271f20c6a4

View file

@ -0,0 +1,17 @@
# Script to toggle wlan speeds.
:log info "Toggle TX Limits script is executed."
:local txLimit
:set txLimit [/interface/wireless/get [find] default-ap-tx-limit]
:tonum $txLimit
:if ( $txLimit = 0 ) do={
/interface/wireless/set [find] default-ap-tx-limit=2M
:log info "Wlan speed is restricted to 2Mbps."
} else={
/interface/wireless/set wlan1 default-ap-tx-limit=0
:log info "Wlan doesn't have speed limits now."
}