The official way to fix lost access to an Access Point, after Station losses access to it's AP, is described here: https://openwrt.org/docs/guide-user/network/wifi/ap_sta
The problem with this solution, is that until the router is restarted, Station mode will no longer work, even though access to the Wireless AP, which the station connected to, is restored.
The reason the problem occurs, at least to my knowledge, is that the driver (mac80211nl) will keep scanning to get access back to the stations AP, preventing the AP to have a consistent connection.
With this knowledge, is it not possible to do periodically scan whether access to the stations AP has returned and if so, enable the station (the kernel should try the connection itself). If it cannot connect within a set time frame, disable the station again and wait a set amount of time?
Any feedback is appreciated,
~Nero