How to schedule wireless radios?

Discussion in 'Tomato Firmware' started by Telex123, Mar 3, 2012.

  1. Telex123

    Telex123 Networkin' Nut Member

    Firstly, many thanks to the community for developing and supporting Tomato. I recently installed Toastman's build on an e3000 and I'm very pleased with the resulting performance, stability, and features. It replaces an old Netgear FVS318 router and Netgear WG102 access-point so, naturally, the improvements are significant!

    I've searched the forum but was unable to find a post describing how to to schedule the e3000's wireless radios.

    First, I assume there is no way to schedule the 2.4GHz and 5 GHz radios separately? I don't need that capability but I'd appreciate it if someone could confirm.

    Second, I read the documentation for the "wl" command and it seems that "wl radio" toggles the radio on/off. Are there discrete commands to turn the radio on and off or is toggling the only way to do it?

    Third, is using Administration >Scheduler > Custom1 to turn the radio off, and Custom2 to turn it on, the only way to do it or is there a better way?
  2. Toastman

    Toastman Super Moderator Staff Member Member

    Look under Access Restriction, that's rather easier to use.
  3. Telex123

    Telex123 Networkin' Nut Member

    OK, I'm embarrassed! I thought I had gone through all the menus but I failed to drill into that one. That's everything I'm looking for and much more!

    Thank you!
  4. Mercjoe

    Mercjoe Network Guru Member

    I know that this is a OLD topic, but it is one I need an answer to.

    I need to turn off ONLY the 2.4 Ghz radio at night. The 5.0 Ghz can remain on at all times

    Yes, access restrictions can turn off ALL Wi-Fi but I need to be more selective.

    I decided to use the scheduler and turn issue the following at the required times

    Custom 1 (turn radio 0 on)

    7:00 AM every day
    nvram set wl0_radio=1
    nvram commit

    Custom 2 (turn radio 0 off)

    11:59pm every day
    nvram set wl0_radio=0
    nvram commit

    The problem is while it SHOWS the radio off/on in the Basic control panel the actual radio state is unchanged until I click the save button on that screen.

    I feel like an idiot, but what am I missing.
    Last edited: Dec 13, 2016
  5. PetervdM

    PetervdM Network Guru Member

    you might have to restart the wl service after the nvram commit:
    service wl restart
  6. Mercjoe

    Mercjoe Network Guru Member

    That was it. Thank you.

    You do not even have to do an nvram commit.

    This turns off the 2.4 Ghz radio:

    nvram set wl0_radio=0
    service wl restart

    and this turns it back on

    nvram set wl0_radio=1
    service wl restart

    By not doing the commit the router will do a restart with both radios up (plus you save some miniscule wear on the nvram) and then continues as scheduled once the times come around again.

    If you want to shut down just the 5Ghz radio it would be wl1_radio instead of wl0_radio.

    If you need to take BOTH radios down I would recommend using access restrictions.
  7. PetervdM

    PetervdM Network Guru Member

    or do a service wl stop
  8. leavep28

    leavep28 Reformed Router Member

    There's no need to modify wl0_radio (2.4GHz) or wl1_radio (5GHz).
    To disable the 2.4GHz radio: radio off 0
    To enable the 2.4GHz radio: radio on 0
    Just make sure that wl0_radio=1 before running these commands.
  9. cobrax2

    cobrax2 Serious Server Member

    hey guys, trying to do something very similar to my r7000 with latest toastman fw
    i want to toggle the 2,4 radio when i push the wps button. or at least to turn it on and off using the button commands at 2-4 and 4-6
    that's what i've tried so far:
    i used wl -i eth1 radio on and with off
    in the interface it seems to work, but the network doesnt seem to appear to other devices, so it only appears within webinterface
    also used radio toggle command, radio on and radio off, it also does something to the web interface but to the actual radio it does nothing
    any ideas?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice