I have just migrated to the latest non-os-sdk (v3.0.4) and I am experiencing an issue that didn't have before, a minute or so after the ESP (configured in STA mode) gets connected to the AP it disconnects from it with reason 8 (REASON_ASSOC_LEAVE).
After that it never reconnects (even though I have set wifi_station_set_reconnect_policy(true)) again unless it is rebooted.
If I flash the ESP again using sdk version 2.18 all works fine, I have also tried a couple of different WiFi APs and I get same behaviour.
Has any of you experienced this, or might you know what the issue is?
Any help is much appreciated!