1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Checking connected wireless clients.

Discussion in 'Tomato Firmware' started by zehninguem, Apr 11, 2007.

  1. zehninguem

    zehninguem Network Guru Member

    Hi all

    Would be possible to check (for example via a script) is the routers has wireless clients connected to it and if not disable the wireless lan?

    After that the wireless lan will be enabled via the cisco button (script again).

    Thanks again
  2. Reiper

    Reiper LI Guru Member

  3. ntest7

    ntest7 Network Guru Member

    Here's something simple... (and untested)

    This will have a race condition when you press the SES button to enable wireless - you must get connected before the script disables wireless again.

    By default, tomato uses the SES/cisco button to toggle wireless if you press it for 1-2 seconds, so we don't need to address that requirement, so we just need a script that disables wireless if no clients are connected.
    See the Administration->Buttons/LED page in tomato setup.

    Paste the following in the "init" script section.
    while sleep 60; do
    if [ "`wl assoclist`" = "" ]
    then wl radio off
  4. zehninguem

    zehninguem Network Guru Member

    Script working but power light blinking after wireless turned off

    First of all my late thanks to ntest7, the script is working and disconnecting my wireless clients.
    Just changed while sleep 60 to while sleep 350 to move form a race condition to a walk fast condition (have a bigger time window to walk fast and connect my wireless client)

    BUT :( after the clients get disconnected the power on led starts to blink and does not stop, even tough everything seems ok (I still have lan and internet access from my wired clients)

  5. ntest7

    ntest7 Network Guru Member

    Looks like a minor bug. The 'wl radio off' command turns of the WLAN led as it should, but on my WRT-54GSv3 it also causes the power light to blink.
    A Buffalo WHR-G54S seems to work as expected, 'wl radio off' turns off only the WLAN LED.

    Anyway, it doesn't seem to cause any problem, just a little visual artifact. Ignore it. Maybe this can be fixed for the next version of Tomato.

Share This Page