No, don't think that helps. Question is why it looses connection to router. With ap it would never try.
What might help is having ethernet as well so you can login over ethernet and check
iwconfig
to see wifi state or run nmcli commands to reconnect (or use manageWifiAccess whcih is what host uses, e.g.
sudo manageWifiAccess connect ssid