In the past before android 10.
When using wifimanager. Connect to an SSID already remembered by phone should like below.
If remembered password was ri