Only broadcast WiFi when WAN is up?


I’m trying to use my Slate AR750S as a wifi hotspot in the car. The idea is that it will either use my mobile phone’s hotspot as the WAN, or else the garage wifi as WAN. However. I only want the wifi network to be broadcasted when the WAN is actually up so that the car doesn’t try to use a dead connection.

To add a little more detail, I would like to leave the 2.4 GHz WiFi always on as a “management” wifi SSID that I can connect to, but I would like the 5 GHz to turn off and on with WAN connectivity.

Is this scenario possible?

Sorry, The device do not support this feature.

I guess that depends on how hard you want this. You can probably script it yourself following the openwrt documentation.

I had to mostly do this within Luci / OpenWRT … and not really guaranteed it’s going to be perfectly stable. But I guess it’s worth a shot.

A script can be added to /etc/hotplug.d/iface to trigger on interface up and down events. Within the script, I can run uci commands to disable the ssid on a particular radio. then I can run wifi reload radio1 to restart the radio.

I chose to uplink on 5GHz and toggle wifi on the 2.4Ghz band. The wifi reload restarts the entire radio, so putting the wifi i want to toggle on the same band as the uplink causes a lot of unnecessary reloading.

The last thing I did was add a start up command in luci that turns off the hotspot ssid. This puts it in the correct state for the wifi up/down triggers.

Again, there may be some edge cases here, but it’s a start.