4 down vote accepted
First in your router change
Second change the wep encryption to just wpa2 (CCMP)(AES) not (TKIP) if you have that option it will work best.
Third set your wireless channel in the router to 1 or 11 then save the router configuration and reboot it.
Fourth go into network manager at top right corner of the screen and click on edit connections>wireless tab and set IPV6 to ignore.
Now open the terminal CTRL+ALT+_T then copy and paste the following code one line at a time for accuracy: