It happened with many of us. Simple and effective solution is to downgrade the upgrade/update to previous one.
Step 1 > Factory Reset
Step 2 > Download a firmware from sammobile.com
Step 3 > Flash it with latest Odin.
Reboot.
Wi-fi must be working!!
Enjoy :)