FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
419 views 2 comments
by
Hello,

I wanted to write a test script that control the wifi signal ON / OFF via ssh connection, but I wanted to shut down only the 5GHz of wifi. As I connected to RUTX11 via 2.4GHz. I have tried the command "/sbin/wifi down" but this command shut down both wifi bands 5GHz and 2.4GHz. How can I shut down only the 5GHz signal of WIFI ? I didn't find the parameter of /sbin/wifi to do what I want.

Thank you in advance

1 Answer

0 votes
by anonymous

Hi,

Sorry that the last command didn't work out for you as you liked. To disable only 5ghz use this:

uci set wireless.YOUR5GHZwirelessNAME.disabled=1

uci commit wireless

luci-reload

To find out what's the name of your wireless in uci, use uci show | grep wireless and find the 5ghz AP name.

EB.

by
Hello thank you for your quick answer, I have done the command uci show wireless, and I have this result below, is that wifi1 is my 5ghz AP name ?

wireless.radio0=wifi-device

wireless.radio0.type='mac80211'

wireless.radio0.hwmode='11g'

wireless.radio0.path='platform/soc/a000000.wifi'

wireless.radio0.htmode='HT20'

wireless.radio0.country='US'

wireless.radio0.channel='11'

wireless.radio1=wifi-device

wireless.radio1.type='mac80211'

wireless.radio1.channel='36'

wireless.radio1.hwmode='11a'

wireless.radio1.path='platform/soc/a800000.wifi'

wireless.radio1.htmode='VHT80'

wireless.radio1.country='US'

wireless.default_radio1=wifi-iface

wireless.default_radio1.device='radio1'

wireless.default_radio1.mode='ap'

wireless.default_radio1.wifi_id='wifi1'

wireless.default_radio1.encryption='psk2+tkip+ccmp'

wireless.default_radio1.ssid='Wifi_5G'

wireless.default_radio1.key='12345678'

wireless.default_radio1.network='lan'

wireless.@wifi-iface[1]=wifi-iface

wireless.@wifi-iface[1].encryption='psk2'

wireless.@wifi-iface[1].device='radio0'

wireless.@wifi-iface[1].mode='ap'

wireless.@wifi-iface[1].key='12345678'

wireless.@wifi-iface[1].ssid='Wifi_2G'

wireless.@wifi-iface[1].network='lan'

wireless.@wifi-iface[1].wifi_id='wifi0'
by anonymous

Hi,

wireless.default_radio1 is your 5ghz AP.

EB.