lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.04k stars 282 forks source link

Automatic restart of WiFi and hotspot upon WiFi disconnection. #351

Open BnDLett opened 9 months ago

BnDLett commented 9 months ago

Is your feature request related to a problem? Please describe.

If you are using the hotspot with a laptop or other device and move it away from the network it is already connected to, then the hotspot will disconnect and you will be required to open your laptop/device, disconnect the hotspot, restart your adapter card, and turn the hotspot back on.

Describe the solution you'd like

A feature that will automatically detect that there is no wifi connection, and will automatically disconnect the hotspot until a wifi connection is obtained. This would be the setting "automatic reconnection of wifi" or something along the lines. This will allow you to roam around with a laptop/device without having to reconnect.

Describe alternatives you've considered

It is possible to use a second network card, however this can be a bit of an issue if you use a backpack as you can run the risk of breaking a fragile network card or if you use a long USB extender and connect the card there, then you can also potentially run the risk of creating a pressure point on the laptop/device thus breaking it.

Additional context

I am currently using my laptop as a personal access point on my school, primarily so that I can ensure I will not need to set up a VPN on all of my devices and just route it to a VPN service via my laptop acting as a hotspot. However, during class change, the hotspot will sometimes disconnect and fail to reconnect itself. The issue seems to primarily extend from the device not being able to detect that there are networks currently broadcasting, and could potentially just be a network driver issue. I am required to restart the network driver in order for my laptop to see networks again, and restart the hotspot to have it resume broadcasting. I will not use the USB network adapter from my PC as I am just running the risk of breaking it, and I do not want to keep long cables in my backpack.