If your Wi-Fi was working fine two weeks ago, that heavily implies a software issue. Try a reboot of the phone, and if that doesn't reset the Wi-Fi, then I recommend backing up your data and performing a factory reset. That will restore your Wi-Fi to normal.