Schedule WiFi ON-OFF on WR1043ND

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
Shocker580
DD-WRT User


Joined: 04 Jan 2013
Posts: 131

PostPosted: Sun Feb 03, 2013 22:40    Post subject: Schedule WiFi ON-OFF on WR1043ND Reply with quote
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 ?
Sponsor
Shocker580
DD-WRT User


Joined: 04 Jan 2013
Posts: 131

PostPosted: Tue Feb 05, 2013 13:40    Post subject: Reply with quote
wl command don't work for nothing..

No one know how to do ?
Shocker580
DD-WRT User


Joined: 04 Jan 2013
Posts: 131

PostPosted: Fri Feb 22, 2013 5:24    Post subject: Reply with quote
UP Rolling Eyes
wallyman
DD-WRT Novice


Joined: 26 Dec 2012
Posts: 7

PostPosted: Sun Feb 24, 2013 18:03    Post subject: Reply with quote
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.
Shocker580
DD-WRT User


Joined: 04 Jan 2013
Posts: 131

PostPosted: Tue Feb 26, 2013 12:48    Post subject: Reply with quote
I'm trying to do this just for turn-off radio when is not used, not for blocking some user. But thanks the same Smile
Harm
DD-WRT Novice


Joined: 16 Jan 2015
Posts: 8

PostPosted: Sun Jan 18, 2015 11:22    Post subject: Reply with quote
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;
ppeter
DD-WRT Novice


Joined: 13 Feb 2009
Posts: 28

PostPosted: Sat Jun 27, 2015 22:14    Post subject: Reply with quote
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
05dyna
DD-WRT Guru


Joined: 25 Jan 2008
Posts: 968

PostPosted: Sun Jun 28, 2015 1:30    Post subject: Reply with quote
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
jean019
DD-WRT User


Joined: 25 Apr 2015
Posts: 124

PostPosted: Sun Oct 04, 2015 19:55    Post subject: Reply with quote
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
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Mon Oct 05, 2015 1:13    Post subject: Reply with quote
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..

jean019
DD-WRT User


Joined: 25 Apr 2015
Posts: 124

PostPosted: Mon Oct 05, 2015 9:04    Post subject: Reply with quote
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.
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Mon Oct 05, 2015 9:32    Post subject: Reply with quote
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
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum