Open Aemiii91 opened 1 year ago
It would be useful for us to have some sort of flag we can set in a config file that would allow us to manually force the WIFI icon OFF and the hotspot icon ON. This is due to how we're having to run the hotspot.
If we could set hotspot: 1 in system.json and ask MainUI to respect this flag when it's set to 1, then show the hotspot icon regardless of whether the hotspot is running or not. This would give us manual control over the icons (in our hotspot launch function we could just set hotspot to 1 and we're done, no need to kill anything apart from putting wlan0 down to stop the wifi connection)
The problem arises from how we're having to run the hotspot, if we kill wpa_supplicant and run hostapd on wlan1 or 0 then the hotspot works fine and the icon shows but this has the side effect of MainUI noticing wpa_supplicant is not running, causing it to be relaunched, killing the hotspot and restarting wifi. The compromise is to run the hotspot on wlan1 but leave the wpa_supplicant running, putting wlan0 down.
From my experiments it seems MainUI will show:
As the hotspot feature was not in MainUI Miyoo354 we have re-created it. But we have some difficulties with the hotspot MainUI top bar icon.
A flag to trigger hotspot icon in top bar (will overwrite WiFi icon even if wpa_supp is running)