Want to Learn More About WiFi?

Click Here to Sign-up for our Advanced Workshop for Network and WiFi Businesses

< Return to Tutorials

Disabling Your SSID

Dec 7, 2016

Being able to disable your SSID without deleting your configuration is a feature that might not always be needed, but when it is needed it is a massively handy ability.

It allows you to preconfigure wireless networks and just toggle them on and off when you need them.

This guide will walk you through the quick steps to follow.

SSH to your OpenWRT device

If you are using Windows then start PuTTY and click Session on the left side, select SSH from the options, and then enter in the IP Address of your OpenWRT box into the Host Name field.

Once you’ve done this just click on Open to start up the SSH connection.

If you are connecting via terminal, then just SSH to your OpenWRT device using the following command, where is your OpenWRT device’s IP address.

ssh root@


First we need to access the wireless config file to make changes. So run the following command:

vi /etc/config/wireless

Once this is open, you will need to find the network you want to hide. This is relatively simple, just look for the SSID of your network.

config 'wifi-iface'
        option 'device'     'wl0'
        option 'network'    'lan'
        option 'mode'       'ap'
        option 'ssid'       'ToggleWiFi'
        option 'encryption' 'psk2'
        option 'key'        'turnmeoffandon'

Above, we have found the interface for the SSID ‘ToggleWiFi’. We want to add/edit in the following:

option 'disabled' '1'

Setting this option to 1 disables the network. This means that it will not be broadcast and cannot be connected to.

Switching to 0 re-enables your network so it is once again viewable (unless configured otherwise) and able to be joined.

Once you have done this, your config should look similar to the following:

config 'wifi-iface'
        option 'device'     'wl0'
        option 'network'    'lan'
        option 'mode'       'ap'
        option 'ssid'       'ToggleWiFi'
        option 'encryption' 'psk2'
        option 'key'        'turnmeoffandon'
        option 'disabled'     '1'

Once you have made your changes you will need to reboot your device or restart the wireless.

To restart your wireless, run the following:

wifi down
wifi up

Or if you want to reboot the whole device, run this instead:


Cucumber Tony is a cloud based WiFi management platform for businesses. The firmware gives consumer-grade WiFi access points enterprise-like capabilities. Or you can utilise the captive portal solution with your existing infrastructure. Create a free account and check it here

Come join Cucumber

Sign Up

Sign-up for Cucumber Tony, it's free for unlimited access points :)