turn wifi off at the end of the day

I need to turn wifi off at the end of the day and on again in the morning.

I am looking to run this from cron.

I have done A LOT of reading and it seems that the commands I should be using (to take wifi down) are:

disable:
nvram set wl0_radio=0
ifup wifi
wifi up
echo "0" > /proc/diag/led/wlan

enable:
nvram set wl0_radio=1
ifup wifi
wifi up
echo "1" > /proc/diag/led/wlan

After issuing the disable commands I can still access the wifi network and connect.

Are these the correct commands?
How do I test for wifi link down

my config:
Linksys WRT54GL v1.1 CL7B
BusyBox v1.00 (2007.05.31-20:09+0000) Built-in shell (ash)
CoovaAP Firmware - version 1.0 beta.8 - Copyright (c) 2008 -
based on WHITE RUSSIAN (0.9+)

THANKS

hmmm, .... my result in any

hmmm, .... my result in any topic concerning coovaAP was, that im only able to reach any solutions, only if work under the console, .... no Webinterface.

Try it with a cronjob and ,,ifconfig -a DEV down" command!