-first you need to install Odin v 3.09 on your PC
-then download clockworkmode (CWM) "CWM_6.0.4.7_Touch_GT-I9505.tar"
-then flash CWM on your device (without unzipping it) using the Odin App.
1-turn off your mobile
2-press on the volume down key + home button key + power key
3-then you will be on the download mode then press on the volume up key
4-connect your device by USB cable
5-insert the CWM file ".tar" by pressing on the AP key and you have to wait till you find that the start button turned ON
-NOTE: please make sure that no check mark on the Re-Partition button
6-then press on start button and wait till CWM be flashed on your device
-NOTE: please don't plug the USB cable off till the Odin App. shows you that the process is Pass (Green Color)
and note that sometimes the process being in Pass stage after you enter the recovery mode
7-to enter the recovery mode you have to turn off your device and then press on volume up key + home button key + power key till the Samsung logo appears and after that you will enter the recovery mode.
-then you have to press on wipe data / restore factory & wipe cache also
-then go back to the main recovery menu and press on reboot the device now.
-then open the download mode again and flash your stock ROM by Odin.
-after the device rebooting try to turn WIFI ON and you will find that it working fine
Note: i tried it with my S4 i9505 and it was working fine
Best Regards,
P.N