davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
322 stars 54 forks source link

Comitup reverts to hotspot mode if hidden SSID goes away and does not reconnect #24

Closed theronic closed 5 years ago

theronic commented 5 years ago

After configuring Comitup to successfully connect to a hidden SSID, Comitup seems to discard its configuration if the hotspot goes away for a while, and does not reconnect.

Is there a way to pre-empt comitup, to always connect to a hotspot if it's available?

Alternatively, can I force nmcli to connect with a cronjob every N minutes?

theronic commented 5 years ago

Apparently this is a known bug in NetworkManager, which unfortunately affects comitup in a terrible way for remote deployments. We've had to do call-outs as a result of this.

Would be great for Comitup to attempt reconnection to configured hidden SSIDs on a schedule?

davesteele commented 5 years ago

An interesting idea. Currently, it goes through all of the available APs reported by NetworkManager, and attempts to connect. This has proved to be problematic - getting NM to see and report the visible APs is a chore. Perhaps comitup should go through the configured AP connections instead.

Your cron idea may work as a stopgap. It depends on how comitup manages/detects the unexpected transition.