Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement: enable/disable only some SSIDs #3

Open
lacouture opened this issue Nov 9, 2019 · 9 comments
Open

improvement: enable/disable only some SSIDs #3

lacouture opened this issue Nov 9, 2019 · 9 comments

Comments

@lacouture
Copy link

A use case is for the Wifi schedule to apply only to one SSID, while other SSIDs are not subject to the schedule.

For instance, the parents' SSID is always enabled, while the kids' SSID is subject to time restrictions.

A simple variant of this feature consists in allowing the optional specification of a SSID globally for the whole schedule. The schedule applies only to this SSID. Other SSIDs are not subject to the schedule. If no SSID is specified, the schedule applies to all SSIDs.

A more complex variant allows specifying more than one SSID. All SSIDs specified are subject to the schedule, and all other SSIDs are not.

A third variant allows the specification of multiple schedules. A list of SSIDs may be specified for each schedule. SSIDs that are not specified in any schedule are not impacted, and are either enabled or disabled, according to their individual setting.

@newkit
Copy link
Owner

newkit commented Nov 13, 2019

Sounds like a reasonable enhancement. Not sure when I will have time to implement. Any volunteers? :-D

@pepa65
Copy link

pepa65 commented Sep 26, 2021

It would be fairly easy to do it by radio: /sbin/wifi down radio0.
What would the command be to disable an SSID??

@newkit
Copy link
Owner

newkit commented Sep 27, 2021

s1r10usly?

@pepa65
Copy link

pepa65 commented Sep 27, 2021

I'm guessing some uci change and commit..?

@newkit
Copy link
Owner

newkit commented Sep 27, 2021

I mean... the question here is how to do it and an wifi down radio0is clearly not enough. So you are raising the 1 mio $ question on how to do it yourself... 😝

@pepa65
Copy link

pepa65 commented Sep 27, 2021

Doing it for per radio is easy to implement. I guess doing it by SSID is not much harder once you know the command. I'm comfortable with shell, but how to implement the web interface with lua would be harder for me.
(I do think it is a useful feature: parents can stay connected to one SSID while the kids' SSID goes down..! With the radio you have to turn off either the 2.4 or the 5.0GHz radio which has other implications.)

@pepa65
Copy link

pepa65 commented Oct 6, 2021

If $SSID has the SSID that you want to turn off:

uci set $(uci show wireless |grep "\.ssid='$SSID'$" |cut -d'.' -f1,2).disabled='1'
uci commit
ubus call network reload

@newkit
Copy link
Owner

newkit commented Mar 31, 2022

Hey thanks, I'll look into that.

@TCB13
Copy link

TCB13 commented Dec 17, 2023

+1 for this feature, however my use case was to disable 5Ghz (and unload whatever driver it requires) during the night and most hours of the day because I don't really need it a those times and from my experience in DD-WRT (that actually allows this) it would cut my router's power consumption to about half.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants