Author
Message
Shocker580 DD-WRT User Joined: 04 Jan 2013 Posts: 131
Posted: Sun Feb 03, 2013 22:40 Post subject: Schedule WiFi ON-OFF on WR1043ND
Hello,
I'm searching a way to schedule the up and down of wireless radio.
Of course the best way is use CRON but, with which command ?
Using ifconfig ath0 down the interface goes down but with ifconfig ath0 up nothing come back..
So.. what is the right command for do this ?
Back to top
Sponsor
Shocker580 DD-WRT User Joined: 04 Jan 2013 Posts: 131
Posted: Tue Feb 05, 2013 13:40 Post subject:
wl command don't work for nothing..
No one know how to do ?
Back to top
Shocker580 DD-WRT User Joined: 04 Jan 2013 Posts: 131
Posted: Fri Feb 22, 2013 5:24 Post subject:
UP
Back to top
wallyman DD-WRT Novice Joined: 26 Dec 2012 Posts: 7
Posted: Sun Feb 24, 2013 18:03 Post subject:
I was looking for a similar thing but settled instead on just blocking devices by MAC (the kids at night) because that seemed to work. Would be interested if you find a solution to this as I would rather turn off the Kids VAP at night in case new devices are introduced or someone gets creative with MAC spoofing.
Back to top
Shocker580 DD-WRT User Joined: 04 Jan 2013 Posts: 131
Posted: Tue Feb 26, 2013 12:48 Post subject:
I'm trying to do this just for turn-off radio when is not used, not for blocking some user. But thanks the same
Back to top
Harm DD-WRT Novice Joined: 16 Jan 2015 Posts: 8
Posted: Sun Jan 18, 2015 11:22 Post subject:
I had the same problem
The solution was to add a stopservice lan and startservice lan. Note that I have transmitpower at 12 db and not 20.
15 1 * * * ifconfig ath0 down; iwconfig ath0 txpower 0;
45 6 * * * stopservice lan; ifconfig ath0 up; iwconfig ath0 txpower 12; startservice lan;
Back to top
ppeter DD-WRT Novice Joined: 13 Feb 2009 Posts: 28
Posted: Sat Jun 27, 2015 22:14 Post subject:
Harm wrote: I had the same problem
The solution was to add a stopservice lan and startservice lan. Note that I have transmitpower at 12 db and not 20.
15 1 * * * ifconfig ath0 down; iwconfig ath0 txpower 0;
45 6 * * * stopservice lan; ifconfig ath0 up; iwconfig ath0 txpower 12; startservice lan;
Why are these txpower settings necessary when turning on/off radio ? Isn't ifconfig ath0 up/down enough ?
Also, how do these commands look like, when I have only 'iw', and no 'iwconfig' ?
Thanks Last edited by ppeter on Sun Jun 28, 2015 7:54; edited 1 time in total
Back to top
05dyna DD-WRT Guru Joined: 25 Jan 2008 Posts: 968
Posted: Sun Jun 28, 2015 1:30 Post subject:
I’d like to know how to get scheduling working too. I have my own thread out there asking for help but no help yet after 266 views . All I know is scheduling worked in the past on my TP-Link routers with older build 23919 but does not work with the recent builds. Maybe time to switch teams, Broadcom dd-wrt users support scheduling with a nice web interface that works
Back to top
jean019 DD-WRT User Joined: 25 Apr 2015 Posts: 124
Posted: Sun Oct 04, 2015 19:55 Post subject:
Harm wrote: I had the same problem
The solution was to add a stopservice lan and startservice lan. Note that I have transmitpower at 12 db and not 20.
15 1 * * * ifconfig ath0 down; iwconfig ath0 txpower 0;
45 6 * * * stopservice lan; ifconfig ath0 up; iwconfig ath0 txpower 12; startservice lan;
"iwconfig ath0 txpower 0" doesn't do nothing on archer C5/C7 (I found 5 dbm minimum)
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=286300
Back to top
tatsuya46 DD-WRT Guru Joined: 03 Jan 2010 Posts: 7568 Location: YWG, Canada
Posted: Mon Oct 05, 2015 1:13 Post subject:
just deny internet access? if thats working? _________________LATEST FIRMWARE(S)
BrainSlayer wrote: we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers
[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55797 std
[QUALCOMM] DIR-862L --------------------------------> r55797 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std
Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..
Back to top
jean019 DD-WRT User Joined: 25 Apr 2015 Posts: 124
Posted: Mon Oct 05, 2015 9:04 Post subject:
yes, but for me the idea was to cut the Wifi power transmission at night, because I'm sleeping near the router.
For the archer C5/C7, it doesn't seem pssible to go under 5dbm, or you have to shut completely wifi with another command.
Back to top
Mile-Lile DD-WRT Guru Joined: 24 Feb 2013 Posts: 1634 Location: Belgrade
Posted: Mon Oct 05, 2015 9:32 Post subject:
I found this from some old post, give it a try...
Code: 0 0 * * * root ifconfig ath0 down; iwconfig ath0 txpower 0
0 6 * * * root ifconfig ath0 up; iwconfig ath0 txpower 158mW; startservice lan
Back to top